some cleanup,

reducing size of questions sidebar
This commit is contained in:
Ralf Teusner
2016-09-01 16:48:55 +02:00
parent 1c7b4c931b
commit 1f159ce0bd
4 changed files with 3 additions and 9 deletions

View File

@@ -429,12 +429,7 @@ var CodeOceanEditor = {
toggleButtonStates: function () {
$('#destroy-file').prop('disabled', this.active_frame.data('role') !== 'user_defined_file');
$('#dropdown-render').toggleClass('disabled', !this.isActiveFileRenderable());
$('#dropdown-run').toggleClass('disabled', !this.isActiveFileRunnable() || this.running);
$('#dropdown-stop').toggleClass('disabled', !this.isActiveFileStoppable());
$('#dropdown-test').toggleClass('disabled', !this.isActiveFileTestable());
$('#dummy').toggle(!this.fileActionsAvailable());
$('#editor-buttons .dropdown-toggle').toggle(this.fileActionsAvailable());
$('#render').toggle(this.isActiveFileRenderable());
$('#run').toggle(this.isActiveFileRunnable() && !this.running);
$('#stop').toggle(this.isActiveFileStoppable());

View File

@@ -66,8 +66,8 @@ CodeOceanEditorFlowr = {
//tODO move codepilot out of here.
initializeCodePilot: function () {
if ($('#questions-column').isPresent() && (typeof QaApi != 'undefined') && QaApi.isBrowserSupported()) {
$('#editor-column').addClass('col-md-8').removeClass('col-md-10');
$('#questions-column').addClass('col-md-3');
$('#editor-column').addClass('col-md-10').removeClass('col-md-12');
$('#questions-column').addClass('col-md-2');
var node = document.getElementById('questions-holder');
var url = $('#questions-holder').data('url');