re-initialize ajax loaded tooltip

This commit is contained in:
tyron 2011-05-24 19:30:42 +02:00
parent c6c0b451a7
commit df9bcddd39
2 changed files with 5 additions and 2 deletions

View File

@ -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()
{

View File

@ -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':