diff --git a/web/pgadmin/static/js/alertify.pgadmin.defaults.js b/web/pgadmin/static/js/alertify.pgadmin.defaults.js index 1ed7712f9..afcedf050 100644 --- a/web/pgadmin/static/js/alertify.pgadmin.defaults.js +++ b/web/pgadmin/static/js/alertify.pgadmin.defaults.js @@ -424,7 +424,8 @@ define([ }; var alertifySuccess = alertify.success, - alertifyError = alertify.error; + alertifyError = alertify.error, + alertifyWarning = alertify.warning; /* For adding the jasmine test cases, we needed to refer the original success, @@ -433,6 +434,7 @@ define([ _.extend(alertify, { orig_success: alertifySuccess, orig_error: alertifyError, + orig_warning: alertifyWarning, }); _.extend(alertify, { @@ -467,6 +469,17 @@ define([ var alert = alertify.notify(alertMessage, timeout); return alert; }, + warning: function(message, timeout) { + var alertMessage = + `