Fix preview button tooltip in code

pull/1/head
yflory 7 years ago
parent fe9261f6a2
commit fd258fc277

@ -83,7 +83,11 @@ define([
}, 150); }, 150);
$previewButton.removeClass('fa-question').addClass('fa-eye'); $previewButton.removeClass('fa-question').addClass('fa-eye');
$previewButton.attr('title', Messages.previewButtonTitle); window.setTimeout(function () {
// setTimeout needed for tippy (tooltip), otherwise we have the browser's default
// tooltips
$previewButton.attr('title', Messages.previewButtonTitle);
});
var previewTo; var previewTo;
$previewButton.click(function () { $previewButton.click(function () {
clearTimeout(previewTo); clearTimeout(previewTo);

Loading…
Cancel
Save