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