fix reopening require pass dialog

This commit is contained in:
Ilya Daynatovich 2016-10-24 16:45:19 +03:00
parent 22b7142159
commit 7a2eca3706
1 changed files with 11 additions and 1 deletions

View File

@ -100,7 +100,16 @@ export default class RequirePasswordDialog {
*/
_submitFunction(e, v, m, f) {
e.preventDefault();
this._processInput(v, f);
}
/**
* Processing input in dialog
* @param v - value
* @param f - form
* @private
*/
_processInput(v, f) {
if (v && f.lockKey) {
this.resolve(UIUtil.escapeHtml(f.lockKey));
} else {
@ -112,7 +121,8 @@ export default class RequirePasswordDialog {
* Close dialog callback
* @private
*/
_closeFunction() {
_closeFunction(e, v, m, f) {
this._processInput(v, f);
this._hideError();
this.close();
}