浏览代码

Updates close function parameters.

j8
damencho 8 年前
父节点
当前提交
615daa8c9f
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6
    5
      modules/UI/util/MessageHandler.js

+ 6
- 5
modules/UI/util/MessageHandler.js 查看文件

41
      * @return the prompt that was created, or null
41
      * @return the prompt that was created, or null
42
      */
42
      */
43
     openMessageDialog: function(titleKey, messageKey, title, message,
43
     openMessageDialog: function(titleKey, messageKey, title, message,
44
-                                closedFunction) {
44
+                                closeFunction) {
45
         if (!popupEnabled)
45
         if (!popupEnabled)
46
             return null;
46
             return null;
47
 
47
 
55
         return $.prompt(message, {
55
         return $.prompt(message, {
56
             title: title,
56
             title: title,
57
             persistent: false,
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
                 if (submitFunction)
115
                 if (submitFunction)
115
                     submitFunction(e, v, m, f);
116
                     submitFunction(e, v, m, f);
116
             },
117
             },
117
-            close: function () {
118
+            close: function (e, v, m, f) {
118
                 twoButtonDialog = null;
119
                 twoButtonDialog = null;
119
                 if (closeFunction)
120
                 if (closeFunction)
120
-                    closeFunction();
121
+                    closeFunction(e, v, m, f);
121
             }
122
             }
122
         });
123
         });
123
         return twoButtonDialog;
124
         return twoButtonDialog;

正在加载...
取消
保存