Browse Source

fix reopening require pass dialog

master
Ilya Daynatovich 8 years ago
parent
commit
7a2eca3706
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      modules/UI/invite/RequirePasswordDialog.js

+ 11
- 1
modules/UI/invite/RequirePasswordDialog.js View File

@@ -100,7 +100,16 @@ export default class RequirePasswordDialog {
100 100
      */
101 101
     _submitFunction(e, v, m, f) {
102 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 113
         if (v && f.lockKey) {
105 114
             this.resolve(UIUtil.escapeHtml(f.lockKey));
106 115
         } else {
@@ -112,7 +121,8 @@ export default class RequirePasswordDialog {
112 121
      * Close dialog callback
113 122
      * @private
114 123
      */
115
-    _closeFunction() {
124
+    _closeFunction(e, v, m, f) {
125
+        this._processInput(v, f);
116 126
         this._hideError();
117 127
         this.close();
118 128
     }

Loading…
Cancel
Save