From a384b4a97a2a4444d8e2c831765dbf35c8da0db2 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Fri, 31 Jul 2020 09:31:39 +0200 Subject: Bump @nextcloud/eslint-config and peers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/src/jquery/ocdialog.js | 2 +- core/src/jquery/showpassword.js | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'core/src/jquery') diff --git a/core/src/jquery/ocdialog.js b/core/src/jquery/ocdialog.js index 7e570d77f52..e08db2530e3 100644 --- a/core/src/jquery/ocdialog.js +++ b/core/src/jquery/ocdialog.js @@ -203,7 +203,7 @@ $.widget('oc.ocdialog', { lessHeight += this.$buttonrow.outerHeight(true) } this.element.css({ - 'height': 'calc(100% - ' + lessHeight + 'px)', + height: 'calc(100% - ' + lessHeight + 'px)', }) }, _createOverlay() { 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) { -- cgit v1.2.3