Manually hide tooltip in editor after pressing some buttons
This commit is contained in:
@ -434,6 +434,7 @@ var CodeOceanEditor = {
|
||||
var button = $('#requestComments');
|
||||
button.prop('disabled', true);
|
||||
button.on('click', function () {
|
||||
button.tooltip('hide');
|
||||
$('#rfc_intervention_text').hide()
|
||||
new bootstrap.Modal($('#comment-modal')).show();
|
||||
});
|
||||
@ -614,7 +615,7 @@ var CodeOceanEditor = {
|
||||
$('#start-over-active-file').prop('disabled', this.active_frame.data('role') === 'user_defined_file' || this.active_frame.data('read-only') !== undefined);
|
||||
$('#dummy').toggle(!this.fileActionsAvailable());
|
||||
$('#render').toggle(this.isActiveFileRenderable());
|
||||
$('#run').toggle(this.isActiveFileRunnable() && !this.running);
|
||||
$('#run').tooltip('hide').toggle(this.isActiveFileRunnable() && !this.running);
|
||||
$('#stop').toggle(this.isActiveFileStoppable());
|
||||
$('#test').toggle(this.isActiveFileTestable());
|
||||
},
|
||||
@ -689,6 +690,7 @@ var CodeOceanEditor = {
|
||||
},
|
||||
|
||||
showSpinner: function (initiator) {
|
||||
$(initiator).tooltip('hide');
|
||||
$(initiator).find('i.fa-solid, i.fa-regular').hide();
|
||||
$(initiator).find('i.fa-spin').addClass('d-inline-block').removeClass('d-none');
|
||||
},
|
||||
|
Reference in New Issue
Block a user