1 /* vim: set expandtab sw=4 ts=4 sts=4: */
6 * Unbind all event handlers before tearing down a page
8 AJAX.registerTeardown('server_status_queries.js', function () {
9 if (document.getElementById('serverstatusquerieschart') !== null) {
10 var queryPieChart = $('#serverstatusquerieschart').data('queryPieChart');
12 queryPieChart.destroy();
17 AJAX.registerOnload('server_status_queries.js', function () {
18 // Build query statistics chart
21 if (document.getElementById('serverstatusquerieschart') !== null) {
22 $.each($('#serverstatusquerieschart').data('chart'), function (key, value) {
23 cdata.push([key, parseInt(value, 10)]);
25 $('#serverstatusquerieschart').data(
27 PMA_createProfilingChart(
28 'serverstatusquerieschart',
34 // Could not load chart, no big deal...
37 initTableSorter('statustabs_queries');