diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-10-19 21:14:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 21:14:21 +0200 |
commit | 93007b6bdb2cb4946a8f6dd0d76e1b50e7ce226b (patch) | |
tree | afaef37a4fc6fc46888cd7131ac5ebe8436efcfd /core/js | |
parent | 543c8634340607c5dd088b9cbdcd85700222ee0b (diff) | |
parent | c5d3febf37f739b9ffbab636914f2ab368f68bbb (diff) | |
download | nextcloud-server-93007b6bdb2cb4946a8f6dd0d76e1b50e7ce226b.tar.gz nextcloud-server-93007b6bdb2cb4946a8f6dd0d76e1b50e7ce226b.zip |
Merge pull request #11926 from stweil/declarations
Add missing variable declarations
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/jquery-showpassword.js | 2 | ||||
-rw-r--r-- | core/js/l10n.js | 2 | ||||
-rw-r--r-- | core/js/placeholder.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/js/jquery-showpassword.js b/core/js/jquery-showpassword.js index 5d518c78bcb..de18c8068be 100644 --- a/core/js/jquery-showpassword.js +++ b/core/js/jquery-showpassword.js @@ -25,7 +25,7 @@ var $element = $(element); - $clone = $("<input />"); + var $clone = $("<input />"); // Name added for JQuery Validation compatibility // Element name is required to avoid script warning. diff --git a/core/js/l10n.js b/core/js/l10n.js index 52dd136e8f5..6027d42dca0 100644 --- a/core/js/l10n.js +++ b/core/js/l10n.js @@ -167,7 +167,7 @@ OC.L10N = { * @private */ _getPlural: function(number) { - locale = OC.getLocale(); + var locale = OC.getLocale(); if ('pt_BR' === locale) { // temporary set a locale for brazilian locale = 'xbr'; diff --git a/core/js/placeholder.js b/core/js/placeholder.js index 7c1bd724550..04c2ca88401 100644 --- a/core/js/placeholder.js +++ b/core/js/placeholder.js @@ -91,7 +91,7 @@ var palette = new Array(); palette.push(color1); var step = stepCalc(steps, [color1, color2]) - for (i = 1; i < steps; i++) { + for (var i = 1; i < steps; i++) { var r = parseInt(color1.r + (step[0] * i)); var g = parseInt(color1.g + (step[1] * i)); var b = parseInt(color1.b + (step[2] * i)); |