diff options
author | imsolost <imsolost@gmail.com> | 2019-01-18 14:53:10 -0800 |
---|---|---|
committer | imsolost <imsolost@gmail.com> | 2019-01-25 11:16:37 -0800 |
commit | 67c304498e1b4bcb5aab3f2d9b5ad81a33983b17 (patch) | |
tree | 10e2e04d02fbbdd156bd9b19bc8a1b400b45ae80 | |
parent | daed830abdb5dc2312322e60e06703c670ed45a3 (diff) | |
download | nextcloud-server-67c304498e1b4bcb5aab3f2d9b5ad81a33983b17.tar.gz nextcloud-server-67c304498e1b4bcb5aab3f2d9b5ad81a33983b17.zip |
added missing variable declarations
Signed-off-by: imsolost <imsolost@gmail.com>
-rw-r--r-- | core/js/oc-dialogs.js | 2 | ||||
-rw-r--r-- | core/js/sharedialoglinkshareview.js | 4 | ||||
-rw-r--r-- | core/js/sharedialogview.js | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 3583019ef08..c9aeaa0b336 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -280,7 +280,7 @@ var OCdialogs = { self.$form.submit(); }); var newName = $input.val(); - lastPos = newName.lastIndexOf('.'); + var lastPos = newName.lastIndexOf('.'); if (lastPos === -1) { lastPos = newName.length; } diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index 91101e47b2e..a3d25684631 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -245,7 +245,7 @@ var $newShare = self.$el.find('li[data-share-id="'+newShareId+'"]'); // only open the menu by default if this is the first share if ($newShare && shares.length === 1) { - $menu = $newShare.find('.popovermenu'); + var $menu = $newShare.find('.popovermenu'); OC.showMenu(null, $menu); } } @@ -257,7 +257,7 @@ // password failure? Show error self.password = '' if (isPasswordEnforced && response && response.responseJSON && response.responseJSON.ocs.meta && response.responseJSON.ocs.meta.message) { - $input = self.$el.find('.pending #enforcedPassText') + var $input = self.$el.find('.pending #enforcedPassText') $input.tooltip('destroy'); $input.attr('title', response.responseJSON.ocs.meta.message); $input.tooltip({placement: 'bottom', trigger: 'manual'}); diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index eabcf2f3b24..ffb75f9d152 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -338,7 +338,7 @@ * build the result array that only contains all contact entries from * merged contacts, if the search term matches its contact name */ - for (i = 0; i < groupedLength; i++) { + for (var i = 0; i < groupedLength; i++) { if (typeof grouped[i].uuid !== 'undefined' && grouped[i].uuid === previousUuid) { grouped[i].merged = true; } |