Updates close function parameters.

This commit is contained in:
damencho 2016-07-06 13:52:59 -05:00
parent 5dffddceec
commit 615daa8c9f
1 changed files with 6 additions and 5 deletions

View File

@ -41,7 +41,7 @@ var messageHandler = {
* @return the prompt that was created, or null * @return the prompt that was created, or null
*/ */
openMessageDialog: function(titleKey, messageKey, title, message, openMessageDialog: function(titleKey, messageKey, title, message,
closedFunction) { closeFunction) {
if (!popupEnabled) if (!popupEnabled)
return null; return null;
@ -55,8 +55,9 @@ var messageHandler = {
return $.prompt(message, { return $.prompt(message, {
title: title, title: title,
persistent: false, persistent: false,
close: function () { close: function (e, v, m, f) {
if(closedFunction) closedFunction(); if(closeFunction)
closeFunction(e, v, m, f);
} }
}); });
}, },
@ -114,10 +115,10 @@ var messageHandler = {
if (submitFunction) if (submitFunction)
submitFunction(e, v, m, f); submitFunction(e, v, m, f);
}, },
close: function () { close: function (e, v, m, f) {
twoButtonDialog = null; twoButtonDialog = null;
if (closeFunction) if (closeFunction)
closeFunction(); closeFunction(e, v, m, f);
} }
}); });
return twoButtonDialog; return twoButtonDialog;