@cryptotaxi247 / netdata-1 / commits / 9e95d36c9

fix for tooltips in group charts

Costa Tsaousis (ktsaou) committed Apr 13, 2014 at 18:13 UTC 9e95d36c91dac6f68b7dededb32ef88c5034ca0f
1 file changed +11 -5
web/index.html
+11 -5
@@ -468,6 +468,14 @@
468 // we never cleanup the thumb charts
469 }
470
471 + function updateUI() {
472 + $('[data-toggle="tooltip"]').tooltip({'placement': 'top', 'container': 'body', 'html': true});
473 +
474 + $('[data-spy="scroll"]').each(function () {
475 + var $spy = $(this).scrollspy('refresh')
476 + })
477 + }
478 +
479 var thumbsScrollPosition = null;
480 function switchToMainGraph() {
481 if(!mainchart) return;
@@ -482,6 +490,7 @@
490
491 mode = MODE_MAIN;
492 playGraphs();
493 + updateUI();
494 }
495
496 function switchToThumbGraphs() {
@@ -496,10 +505,7 @@
505 // switch mode
506 mode = MODE_THUMBS;
507 playGraphs();
499 -
500 - $('[data-spy="scroll"]').each(function () {
501 - var $spy = $(this).scrollspy('refresh')
502 - })
508 + updateUI();
509 }
510
511 function switchToGroupGraphs() {
@@ -517,6 +523,7 @@
523
524 mode = MODE_GROUP_THUMBS;
525 playGraphs();
526 + updateUI();
527 }
528
529
@@ -669,7 +676,6 @@
676 mainmenu += "</ul>";
677
678 thumbsContainer.innerHTML = allcategories;
672 - $('[data-toggle="tooltip"]').tooltip({'placement': 'top', 'container': 'body', 'html': true});
679 switchToThumbGraphs();
680 });
681 }