summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/js
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2018-10-19 11:37:11 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-19 20:17:55 +0200
commitc5d3febf37f739b9ffbab636914f2ab368f68bbb (patch)
treeafaef37a4fc6fc46888cd7131ac5ebe8436efcfd /apps/federatedfilesharing/js
parent543c8634340607c5dd088b9cbdcd85700222ee0b (diff)
downloadnextcloud-server-c5d3febf37f739b9ffbab636914f2ab368f68bbb.tar.gz
nextcloud-server-c5d3febf37f739b9ffbab636914f2ab368f68bbb.zip
Add missing variable declarations
This fixes errors from LGTM like the following one: Variable i is used like a local variable, but is missing a declaration. Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'apps/federatedfilesharing/js')
-rw-r--r--apps/federatedfilesharing/js/settings-personal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/js/settings-personal.js b/apps/federatedfilesharing/js/settings-personal.js
index c954f74f323..407493640b1 100644
--- a/apps/federatedfilesharing/js/settings-personal.js
+++ b/apps/federatedfilesharing/js/settings-personal.js
@@ -28,7 +28,7 @@ $(document).ready(function() {
// Clipboard!
var clipboard = new Clipboard('.clipboardButton');
clipboard.on('success', function(e) {
- $input = $(e.trigger);
+ var $input = $(e.trigger);
$input.tooltip('hide')
.attr('data-original-title', t('core', 'Copied!'))
.tooltip('fixTitle')
@@ -41,7 +41,7 @@ $(document).ready(function() {
}, 3000);
});
clipboard.on('error', function (e) {
- $input = $(e.trigger);
+ var $input = $(e.trigger);
var actionMsg = '';
if (/iPhone|iPad/i.test(navigator.userAgent)) {
actionMsg = t('core', 'Not supported!');