diff --git a/js/server_status.js b/js/server_status.js index 870f9b1205..bcb25b8f90 100644 --- a/js/server_status.js +++ b/js/server_status.js @@ -15,6 +15,9 @@ // Add a tablesorter parser to properly handle thousands seperated numbers and SI prefixes $(function() { + // Show all javascript related parts of the page + $('.jsfeature').show(); + jQuery.tablesorter.addParser({ id: "fancyNumber", is: function(s) { @@ -110,7 +113,7 @@ $(function() { menuResize(); // Load Server status monitor if (ui.tab.hash == '#statustabs_charting' && ! monitorLoaded) { - $('div#statustabs_charting').append( + $('div#statustabs_charting').append( //PMA_messages['strLoadingMonitor'] + ' ' + '' ); @@ -144,9 +147,6 @@ $(function() { tabStatus[$(this).attr('id')] = 'static'; }); - // Display button links - $('div.buttonlinks').show(); - // Handles refresh rate changing $('.buttonlinks select').change(function() { var chart = tabChart[$(this).parents('div.ui-tabs-panel').attr('id')]; diff --git a/js/server_status_monitor.js b/js/server_status_monitor.js index f8a179d9f7..7ac2498810 100644 --- a/js/server_status_monitor.js +++ b/js/server_status_monitor.js @@ -1869,4 +1869,9 @@ $(function() { $('a[href="#clearMonitorConfig"]').show(); } +}); + +// Run the monitor once loaded +$(function() { + $('a[href="#pauseCharts"]').trigger('click'); }); \ No newline at end of file diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index 81d01de4a9..83590f927d 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -1126,6 +1126,9 @@ img.sortableIcon { .buttonlinks { float: ; white-space: nowrap; +} + +.jsfeature { display: none; /* Made visible with js */ } diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 3cd5dc2ce2..805041939e 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -1348,6 +1348,9 @@ img.sortableIcon { .buttonlinks { float: ; white-space: nowrap; +} + +.jsfeature { display: none; /* Made visible with js */ }