diff options
| author | selsta <selsta@sent.at> | 2019-07-01 11:44:33 +0200 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2019-07-15 00:05:10 +0200 |
| commit | 35a0f25b5702a13696aec4bc679d0c25b576ca17 (patch) | |
| tree | e96eb040cbba6b8177e86a6d92d458116b6eaf30 /js/Utils.js | |
| parent | c7956f76ead2c82a320c830a63ffa97d55a10bb6 (diff) | |
| download | monzero-gui-35a0f25b5702a13696aec4bc679d0c25b576ca17.tar.gz monzero-gui-35a0f25b5702a13696aec4bc679d0c25b576ca17.tar.xz monzero-gui-35a0f25b5702a13696aec4bc679d0c25b576ca17.zip | |
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.
Diffstat (limited to 'js/Utils.js')
| -rw-r--r-- | js/Utils.js | 19 |
1 files changed, 0 insertions, 19 deletions
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(... |
