浏览代码

fix reopening require pass dialog

master
Ilya Daynatovich 8 年前
父节点
当前提交
7a2eca3706
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 11
    1
      modules/UI/invite/RequirePasswordDialog.js

+ 11
- 1
modules/UI/invite/RequirePasswordDialog.js 查看文件

100
      */
100
      */
101
     _submitFunction(e, v, m, f) {
101
     _submitFunction(e, v, m, f) {
102
         e.preventDefault();
102
         e.preventDefault();
103
+        this._processInput(v, f);
104
+    }
103
 
105
 
106
+    /**
107
+     * Processing input in dialog
108
+     * @param v - value
109
+     * @param f - form
110
+     * @private
111
+     */
112
+    _processInput(v, f) {
104
         if (v && f.lockKey) {
113
         if (v && f.lockKey) {
105
             this.resolve(UIUtil.escapeHtml(f.lockKey));
114
             this.resolve(UIUtil.escapeHtml(f.lockKey));
106
         } else {
115
         } else {
112
      * Close dialog callback
121
      * Close dialog callback
113
      * @private
122
      * @private
114
      */
123
      */
115
-    _closeFunction() {
124
+    _closeFunction(e, v, m, f) {
125
+        this._processInput(v, f);
116
         this._hideError();
126
         this._hideError();
117
         this.close();
127
         this.close();
118
     }
128
     }

正在加载...
取消
保存