some cleanup,
reducing size of questions sidebar
This commit is contained in:
@@ -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());
|
||||
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user