Skip to content

Commit 8621618

Browse files
author
Gary Keeble
committed
Fix Tooltip Hover
If the item held focus, tooltips remained on screen even after moving mouse away.
1 parent 77eacf6 commit 8621618

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/main.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ function BlackboxLogViewer() {
787787

788788
$(document).ready(function() {
789789

790-
$('[data-toggle="tooltip"]').tooltip(); // initialise tooltips
790+
$('[data-toggle="tooltip"]').tooltip({trigger: "hover"}); // initialise tooltips
791791

792792
// Get Latest Version Information
793793
$("#viewer-version").text('You are using version ' + VIEWER_VERSION);
@@ -838,12 +838,17 @@ function BlackboxLogViewer() {
838838
}
839839
});
840840

841+
/**
841842
prefs.get('hasAnalyser', function(item) {
842843
if (item) {
843844
hasAnalyser = item;
844845
(hasAnalyser)?$("html").addClass("has-analyser"):$("html").removeClass("has-analyser");
845846
}
846847
});
848+
**/
849+
// Reset the analyser window on application startup.
850+
hasAnalyser = false;
851+
(hasAnalyser)?$("html").addClass("has-analyser"):$("html").removeClass("has-analyser");
847852

848853
$(".file-open").change(function(e) {
849854
var

0 commit comments

Comments
 (0)