|
@@ -285,7 +285,7 @@ export default class InviteDialogView {
|
285
|
285
|
$(removePassword).on('click', () => {
|
286
|
286
|
this.model.setRoomUnlocked();
|
287
|
287
|
});
|
288
|
|
- let boundSetPassword = this.setPassword.bind(this);
|
|
288
|
+ let boundSetPassword = this._setPassword.bind(this);
|
289
|
289
|
$(document).on('click', addPasswordBtn, boundSetPassword);
|
290
|
290
|
let boundDisablePass = this.disableAddPassIfInputEmpty.bind(this);
|
291
|
291
|
$(document).on('keypress', newPasswordInput, boundDisablePass);
|
|
@@ -295,12 +295,16 @@ export default class InviteDialogView {
|
295
|
295
|
$(newPasswordInput).on('keydown', (e) => {
|
296
|
296
|
if (e.keyCode === ENTER_KEY) {
|
297
|
297
|
e.stopPropagation();
|
298
|
|
- this.setPassword();
|
|
298
|
+ this._setPassword();
|
299
|
299
|
}
|
300
|
300
|
});
|
301
|
301
|
}
|
302
|
302
|
|
303
|
|
- setPassword() {
|
|
303
|
+ /**
|
|
304
|
+ * Marking room as locked
|
|
305
|
+ * @private
|
|
306
|
+ */
|
|
307
|
+ _setPassword() {
|
304
|
308
|
let $passInput = $('#newPasswordInput');
|
305
|
309
|
let newPass = $passInput.val();
|
306
|
310
|
|