From 35a0f25b5702a13696aec4bc679d0c25b576ca17 Mon Sep 17 00:00:00 2001 From: selsta Date: Mon, 1 Jul 2019 11:44:33 +0200 Subject: PasswordDialog: merge components and bug fixes This commit merges PasswordDialog, PassphraseDialog and NewPasswordDialog. Also the following bugs were fixed: - Wizard pages still being active when opening a wallet from wizard. - Capslock detection was buggy when copy pasting password, I replaced it with native implementations for each platform. - isAlpha could throw errors when using special characters. --- js/Utils.js | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'js') diff --git a/js/Utils.js b/js/Utils.js index b709b2ce..4a9a5fed 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -112,25 +112,6 @@ function roundDownToNearestThousand(_num){ return Math.floor(_num/1000.0)*1000 } -function isAlpha(letter){ return letter.match(/^[A-Za-z0-9]+$/) !== null; } - -function isLowerCaseChar(letter){ return letter === letter.toLowerCase(); } - -function isUpperLock(shift, letter){ - if(!isAlpha((letter))) return false; - if(shift) { - if(isLowerCaseChar(letter)) - return true; - else - return false; - } else { - if(isLowerCaseChar(letter)) - return false; - else - return true; - } -} - function qmlEach(item, properties, ignoredObjectNames, arr){ // Traverse QML object tree and return components that match // via property names. Similar to jQuery("myclass").each(... -- cgit v1.2.3