Skip to content

Commit

Permalink
Add timeout to tool info tooltips in kiosk and status dashboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
r-xyz committed Sep 5, 2024
1 parent 8f9e8af commit 0b219f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion NEMO/templates/status_dashboard/tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@
else
{
{# Set up new tooltip #}
$(this).tooltip({template: '<div class="tooltip '+tooltip_class+'" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', trigger: 'manual', html: 'true', container: '#tools'}).tooltip("show");
var tooltip =$(this).tooltip({template: '<div class="tooltip '+tooltip_class+'" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', trigger: 'manual', html: 'true', container: '#tools'}).tooltip("show").data('bs.tooltip');
{# Set auto hide to 30 seconds #}
setTimeout(function() {
tooltip.hide();
}.bind(this), 30000);
}
});
$("[data-toggle='tooltip']").tooltip({html: 'true'});
Expand Down

0 comments on commit 0b219f7

Please sign in to comment.