diff options
Diffstat (limited to 'core/src/jquery/showpassword.js')
-rw-r--r-- | core/src/jquery/showpassword.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/src/jquery/showpassword.js b/core/src/jquery/showpassword.js index 553f6e15df1..ac0a9556ae8 100644 --- a/core/src/jquery/showpassword.js +++ b/core/src/jquery/showpassword.js @@ -39,7 +39,7 @@ $.fn.extend({ showPassword(c) { // Setup callback object - const callback = { 'fn': null, 'args': {} } + const callback = { fn: null, args: {} } callback.fn = c // Clones passwords and turn the clones into text inputs @@ -52,13 +52,13 @@ $.fn.extend({ // Name added for JQuery Validation compatibility // Element name is required to avoid script warning. $clone.attr({ - 'type': 'text', - 'class': $element.attr('class'), - 'style': $element.attr('style'), - 'size': $element.attr('size'), - 'name': $element.attr('name') + '-clone', - 'tabindex': $element.attr('tabindex'), - 'autocomplete': 'off', + type: 'text', + class: $element.attr('class'), + style: $element.attr('style'), + size: $element.attr('size'), + name: $element.attr('name') + '-clone', + tabindex: $element.attr('tabindex'), + autocomplete: 'off', }) if ($element.attr('placeholder') !== undefined) { |