From 8621618c426d94736bd33954f570e52ce24e8f18 Mon Sep 17 00:00:00 2001 From: Gary Keeble Date: Mon, 15 Aug 2016 07:13:36 +0100 Subject: [PATCH] Fix Tooltip Hover If the item held focus, tooltips remained on screen even after moving mouse away. --- js/main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index ceb63d5f..9ab25068 100644 --- a/js/main.js +++ b/js/main.js @@ -787,7 +787,7 @@ function BlackboxLogViewer() { $(document).ready(function() { - $('[data-toggle="tooltip"]').tooltip(); // initialise tooltips + $('[data-toggle="tooltip"]').tooltip({trigger: "hover"}); // initialise tooltips // Get Latest Version Information $("#viewer-version").text('You are using version ' + VIEWER_VERSION); @@ -838,12 +838,17 @@ function BlackboxLogViewer() { } }); + /** prefs.get('hasAnalyser', function(item) { if (item) { hasAnalyser = item; (hasAnalyser)?$("html").addClass("has-analyser"):$("html").removeClass("has-analyser"); } }); + **/ + // Reset the analyser window on application startup. + hasAnalyser = false; + (hasAnalyser)?$("html").addClass("has-analyser"):$("html").removeClass("has-analyser"); $(".file-open").change(function(e) { var