Fixed another multiple dialogs bug in server status monitor
This commit is contained in:
parent
844c6f65a7
commit
b0004fbbcb
@ -16,6 +16,7 @@ AJAX.registerOnload('server_status_monitor.js', function() {
|
||||
* Unbind all event handlers before tearing down a page
|
||||
*/
|
||||
AJAX.registerTeardown('server_status_monitor.js', function() {
|
||||
$('#emptyDialog').dialog('destroy');
|
||||
$('#addChartDialog').dialog('destroy');
|
||||
$('a.popupLink').unbind('click');
|
||||
$('body').unbind('click');
|
||||
@ -24,6 +25,9 @@ AJAX.registerTeardown('server_status_monitor.js', function() {
|
||||
* Popup behaviour
|
||||
*/
|
||||
AJAX.registerOnload('server_status_monitor.js', function() {
|
||||
$('<div />')
|
||||
.attr('id', 'emptyDialog')
|
||||
.appendTo('#page_content');
|
||||
$('#addChartForm').clone()
|
||||
.attr('id', 'addChartDialog')
|
||||
.appendTo('#page_content');
|
||||
|
||||
@ -670,8 +670,6 @@ function getPrintMonitorHtml($ServerStatusData)
|
||||
$retval .= '</div>';
|
||||
$retval .= '</div>';
|
||||
|
||||
$retval .= '<div id="emptyDialog" title="Dialog" style="display:none;"></div>';
|
||||
|
||||
if (! PMA_DRIZZLE) {
|
||||
$retval .= '<div id="logAnalyseDialog" title="';
|
||||
$retval .= __('Log statistics') . '" style="display:none;">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user