From df9bcddd39e9fd66c0002bdd4e5496616dc5bc60 Mon Sep 17 00:00:00 2001 From: tyron Date: Tue, 24 May 2011 19:30:42 +0200 Subject: [PATCH] re-initialize ajax loaded tooltip --- js/functions.js | 6 ++++-- js/server_status.js | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index f745e8c106..38a5cc3f75 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1974,8 +1974,10 @@ $(document).ready(function() { } }); +$(document).ready(initTooltips); + /* Displays tooltips */ -$(document).ready(function() { +function initTooltips() { // Hide the footnotes from the footer (which are displayed for // JavaScript-disabled browsers) since the tooltip is sufficient $(".footnotes").hide(); @@ -2001,7 +2003,7 @@ $(document).ready(function() { style: { background: '#ffffcc' } }); }); -}); +} function menuResize() { diff --git a/js/server_status.js b/js/server_status.js index abe30a60bc..8259d53b03 100644 --- a/js/server_status.js +++ b/js/server_status.js @@ -49,6 +49,7 @@ $(function() { switch(tab.attr('id')) { case 'statustabs_traffic': tab.html(data); + initTooltips(); $('#statustabs_traffic .statuslinks a').click(function() { return refreshHandler(this); }); break; case 'statustabs_queries':