diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-12 12:54:17 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-12 12:54:17 +0100 |
commit | cddc6c02077d20ff7e4bbd3f44592e92991cf5c5 (patch) | |
tree | f3e63cf656c85bc23f5648b82519a58af901eca3 | |
parent | 1cb5f316ed2113b1a546bb9a3daea1d5fe207785 (diff) | |
download | nextcloud-server-cddc6c02077d20ff7e4bbd3f44592e92991cf5c5.tar.gz nextcloud-server-cddc6c02077d20ff7e4bbd3f44592e92991cf5c5.zip |
fixup! Use nextcloud-password-confirmation
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r-- | core/js/js.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/js/js.js b/core/js/js.js index 361d2ab9b7e..79f268ea6c9 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1775,10 +1775,8 @@ OC.PasswordConfirmation = { function (result, password) { if (result && password !== '') { self._confirmPassword(password, config); - } else { - if (rejectCallback && typeof rejectCallback === 'function') { - rejectCallback() - } + } else if (_.isFunction(rejectCallback)) { + rejectCallback() } }, true, |