|
@@ -41,7 +41,7 @@ var messageHandler = {
|
41
|
41
|
* @return the prompt that was created, or null
|
42
|
42
|
*/
|
43
|
43
|
openMessageDialog: function(titleKey, messageKey, title, message,
|
44
|
|
- closedFunction) {
|
|
44
|
+ closeFunction) {
|
45
|
45
|
if (!popupEnabled)
|
46
|
46
|
return null;
|
47
|
47
|
|
|
@@ -55,8 +55,9 @@ var messageHandler = {
|
55
|
55
|
return $.prompt(message, {
|
56
|
56
|
title: title,
|
57
|
57
|
persistent: false,
|
58
|
|
- close: function () {
|
59
|
|
- if(closedFunction) closedFunction();
|
|
58
|
+ close: function (e, v, m, f) {
|
|
59
|
+ if(closeFunction)
|
|
60
|
+ closeFunction(e, v, m, f);
|
60
|
61
|
}
|
61
|
62
|
});
|
62
|
63
|
},
|
|
@@ -114,10 +115,10 @@ var messageHandler = {
|
114
|
115
|
if (submitFunction)
|
115
|
116
|
submitFunction(e, v, m, f);
|
116
|
117
|
},
|
117
|
|
- close: function () {
|
|
118
|
+ close: function (e, v, m, f) {
|
118
|
119
|
twoButtonDialog = null;
|
119
|
120
|
if (closeFunction)
|
120
|
|
- closeFunction();
|
|
121
|
+ closeFunction(e, v, m, f);
|
121
|
122
|
}
|
122
|
123
|
});
|
123
|
124
|
return twoButtonDialog;
|