Moving the messages used in common utilities in a separate javascript.

This commit is contained in:
Ashesh Vashi
2016-04-11 17:05:49 +05:30
parent d53ab31eb8
commit e07ebdc049
7 changed files with 58 additions and 31 deletions

View File

@@ -90,7 +90,7 @@ function(alertify, S) {
contentType = xhr.getResponseHeader('Content-Type');
if (xhr.status == 0) {
msg = window.pgAdmin.Browser.messages.server_lost;
msg = window.pgAdmin.Browser.messages.SERVER_LOST;
}
if (contentType) {
@@ -110,7 +110,7 @@ function(alertify, S) {
if (contentType.indexOf('text/html') == 0) {
alertify.notify(
S(
window.pgAdmin.Browser.messages.click_for_detailed_msg
window.pgAdmin.Browser.messages.CLICK_FOR_DETAILED_MSG
).sprintf(promptmsg).value(), type, 0, function() {
alertify.pgIframeDialog().show().set({ frameless: false }).set('pg_msg', msg);
});