Index: lams_learning/web/includes/javascript/gate-check5.js =================================================================== diff -u -ref5bed2f62785ca5cdb668d9f1e8fbf4f0256dff -r8aeceeff002bfbe95e44b4a229f67813ee125847 --- lams_learning/web/includes/javascript/gate-check5.js (.../gate-check5.js) (revision ef5bed2f62785ca5cdb668d9f1e8fbf4f0256dff) +++ lams_learning/web/includes/javascript/gate-check5.js (.../gate-check5.js) (revision 8aeceeff002bfbe95e44b4a229f67813ee125847) @@ -6,8 +6,10 @@ return; } - new bootstrap.Tooltip(finishButton[0],{ - 'trigger' : 'manual' + let tooltip = new bootstrap.Tooltip(finishButton[0],{ + 'trigger' : 'manual', + // apparently there has to be some title, otherwise the tooltip won't show + 'title' : '-' }); finishButton @@ -41,13 +43,12 @@ let timeoutFunction = null; if (response.message) { // tooltips should say whatever we got in the response - finishButton.attr({ - 'title' : response.message, - 'data-original-title' : response.message - }).bootstrapTooltip('show'); + tooltip.setContent({'.tooltip-inner' : response.message}); + tooltip.show(); timeoutFunction = function(){ - finishButton.bootstrapTooltip('hide').prop('disabled', false).attr('disabled', false); + tooltip.hide(); + finishButton.prop('disabled', false).attr('disabled', false); }; } else { timeoutFunction = function(){