Skip to content

Commit

Permalink
Setting the title initially is problematic with commit faeffd3
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuracj committed Apr 21, 2012
1 parent d7ca655 commit 24af843
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/server_status.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ $(function() {

$tr.click(function() {
var rule = $(this).data('rule');
$('div#emptyDialog').dialog('option', 'title', PMA_messages['strRuleDetails']);
$('div#emptyDialog').dialog({title: PMA_messages['strRuleDetails']});
$('div#emptyDialog').html(
'<p><b>' + PMA_messages['strIssuse'] + ':</b><br />' + rule.issue + '</p>' +
'<p><b>' + PMA_messages['strRecommendation'] + ':</b><br />' + rule.recommendation + '</p>' +
Expand Down Expand Up @@ -713,7 +713,7 @@ function serverResponseError() {
btns[PMA_messages['strReloadPage']] = function() {
window.location.reload();
};
$('#emptyDialog').dialog('option', 'title', PMA_messages['strRefreshFailed']);
$('#emptyDialog').dialog({title: PMA_messages['strRefreshFailed']});
$('#emptyDialog').html(
PMA_getImage('s_attention.png') +
PMA_messages['strInvalidResponseExplanation']
Expand Down
10 changes: 5 additions & 5 deletions js/server_status_monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ $(function() {
});

$('a[href="#importMonitorConfig"]').click(function() {
$('div#emptyDialog').dialog('option', 'title', PMA_messages['strImportDialogTitle']);
$('div#emptyDialog').dialog({title: PMA_messages['strImportDialogTitle']});
$('div#emptyDialog').html(PMA_messages['strImportDialogMessage'] + ':<br/><form action="file_echo.php?' + url_query + '&import=1" method="post" enctype="multipart/form-data">' +
'<input type="file" name="file"> <input type="hidden" name="import" value="1"> </form>');

Expand Down Expand Up @@ -849,7 +849,7 @@ $(function() {
$('a[href="#clearMonitorConfig"]').toggle(runtime.charts != null);

if (runtime.charts != null && monitorProtocolVersion != window.localStorage['monitorVersion']) {
$('div#emptyDialog').dialog('option', 'title',PMA_messages['strIncompatibleMonitorConfig']);
$('div#emptyDialog').dialog({title: PMA_messages['strIncompatibleMonitorConfig']});
$('div#emptyDialog').html(PMA_messages['strIncompatibleMonitorConfigDescription']);

var dlgBtns = {};
Expand Down Expand Up @@ -1337,7 +1337,7 @@ $(function() {
opts.limitTypes = false;
}

$('#emptyDialog').dialog('option', 'title', PMA_messages['strAnalysingLogsTitle']);
$('#emptyDialog').dialog({title: PMA_messages['strAnalysingLogsTitle']});
$('#emptyDialog').html(PMA_messages['strAnalysingLogs'] +
' <img class="ajaxIcon" src="' + pmaThemeImage +
'ajax_clock_small.gif" alt="">');
Expand Down Expand Up @@ -1379,7 +1379,7 @@ $(function() {
runtime.logDataCols = buildLogTable(logData);

/* Show some stats in the dialog */
$('#emptyDialog').dialog('option', 'title', PMA_messages['strLoadingLogs']);
$('#emptyDialog').dialog({title: PMA_messages['strLoadingLogs']});
$('#emptyDialog').html('<p>' + PMA_messages['strLogDataLoaded'] + '</p>');
$.each(logData.sum, function(key, value) {
key = key.charAt(0).toUpperCase() + key.slice(1).toLowerCase();
Expand Down Expand Up @@ -1427,7 +1427,7 @@ $(function() {
$('#emptyDialog').dialog( "option", "buttons", dlgBtns);

} else {
$('#emptyDialog').dialog('option', 'title', PMA_messages['strNoDataFoundTitle']);
$('#emptyDialog').dialog({title: PMA_messages['strNoDataFoundTitle']});
$('#emptyDialog').html('<p>' + PMA_messages['strNoDataFound'] + '</p>');

var dlgBtns = {};
Expand Down

0 comments on commit 24af843

Please sign in to comment.