Kaynağa Gözat

Editions in PR

master
Ilya Daynatovich 8 yıl önce
ebeveyn
işleme
62713bf87c

+ 1
- 1
modules/UI/invite/Invite.js Dosyayı Görüntüle

@@ -68,7 +68,7 @@ class Invite {
68 68
                     // will be marked as locked.
69 69
                     if (!pass)
70 70
                         this.setLockedFromElsewhere(false);
71
-                    this.conference.join(roomLocker.password);
71
+                    this.conference.join(pass);
72 72
                 });
73 73
             });
74 74
     }

+ 4
- 2
modules/UI/invite/RequirePasswordDialog.js Dosyayı Görüntüle

@@ -76,7 +76,7 @@ export default class RequirePasswordDialog {
76 76
             let submitFunction = this._submitFunction.bind(this);
77 77
             let closeFunction = this._closeFunction.bind(this);
78 78
 
79
-            APP.UI.messageHandler.openTwoButtonDialog({
79
+            this._dialog = APP.UI.messageHandler.openTwoButtonDialog({
80 80
                 titleKey,
81 81
                 msgString,
82 82
                 leftButtonKey: "dialog.Ok",
@@ -153,7 +153,9 @@ export default class RequirePasswordDialog {
153 153
      * Close the dialog
154 154
      */
155 155
     close() {
156
-        APP.UI.messageHandler.closeDialog();
156
+        if (this._dialog) {
157
+            this._dialog.close();
158
+        }
157 159
         this.isOpened = false;
158 160
     }
159 161
 }

+ 0
- 7
modules/UI/util/MessageHandler.js Dosyayı Görüntüle

@@ -338,13 +338,6 @@ var messageHandler = {
338 338
         };
339 339
     },
340 340
 
341
-    /**
342
-     * Closes currently opened dialog.
343
-     */
344
-    closeDialog: function () {
345
-        $.prompt.close();
346
-    },
347
-
348 341
     /**
349 342
      * Shows a dialog with different states to the user.
350 343
      *

Loading…
İptal
Kaydet