Skip to content

Commit

Permalink
Fix Tooltip Hover
Browse files Browse the repository at this point in the history
If the item held focus, tooltips remained on screen even after moving
mouse away.
  • Loading branch information
Gary Keeble committed Aug 15, 2016
1 parent 77eacf6 commit 8621618
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8621618

Please sign in to comment.