Editor: Fix tooltip when submit is no longer possible

This commit is contained in:
Sebastian Serth
2023-02-28 00:51:07 +01:00
parent 5ed8f7c812
commit ccbd74b4c7
2 changed files with 1 additions and 7 deletions

View File

@ -415,11 +415,6 @@ var CodeOceanEditor = {
this.regex_for_language.set("ace/mode/java", /(?:\.\/)?(.*\.java):(\d+):/g); this.regex_for_language.set("ace/mode/java", /(?:\.\/)?(.*\.java):(\d+):/g);
}, },
initializeTooltips: function () {
$('[data-tooltip]').tooltip();
},
initializeWorkspaceButtons: function () { initializeWorkspaceButtons: function () {
$('#submit').one('click', this.submitCode.bind(this)); $('#submit').one('click', this.submitCode.bind(this));
$('#assess').on('click', this.scoreCode.bind(this)); $('#assess').on('click', this.scoreCode.bind(this));
@ -964,7 +959,6 @@ var CodeOceanEditor = {
this.initializeOutputBarToggle(); this.initializeOutputBarToggle();
this.initializeDescriptionToggle(); this.initializeDescriptionToggle();
this.initializeSideBarTooltips(); this.initializeSideBarTooltips();
this.initializeTooltips();
this.initializeInterventionTimer(); this.initializeInterventionTimer();
this.initializeSearchButton(); this.initializeSearchButton();
this.initPrompt(); this.initPrompt();

View File

@ -67,7 +67,7 @@ div.d-grid id='output_sidebar_uncollapsed' class='d-none col-sm-12 enforce-botto
h4 = t('exercises.editor.deadline') h4 = t('exercises.editor.deadline')
= t('exercises.editor.hints.disclaimer') = t('exercises.editor.hints.disclaimer')
- else - else
p.text-center = render('editor_button', classes: 'btn-lg btn-secondary disabled', data: {:'data-bs-placement' => 'bottom', :'data-tooltip' => true}, icon: 'fa-regular fa-clock', id: 'submit_outdated', label: t('exercises.editor.exercise_deadline_passed'), title: t('exercises.editor.tooltips.exercise_deadline_passed')) p.text-center.disabled = render('editor_button', classes: 'btn-lg btn-secondary', data: {:'data-bs-placement' => 'bottom', :'data-bs-toggle' => 'tooltip', :'data-bs-container' => 'body'}, icon: 'fa-regular fa-clock', id: 'submit_outdated', label: t('exercises.editor.exercise_deadline_passed'), title: t('exercises.editor.tooltips.exercise_deadline_passed'))
hr hr
#turtlediv.enforce-big-bottom-margin.overflow-auto.d-none #turtlediv.enforce-big-bottom-margin.overflow-auto.d-none
canvas#turtlecanvas width=400 height=400 canvas#turtlecanvas width=400 height=400