From cddc6c02077d20ff7e4bbd3f44592e92991cf5c5 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Mon, 12 Nov 2018 12:54:17 +0100 Subject: fixup! Use nextcloud-password-confirmation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/js/js.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core/js/js.js') 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, -- cgit v1.2.3