aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-10-19 21:14:21 +0200
committerGitHub <noreply@github.com>2018-10-19 21:14:21 +0200
commit93007b6bdb2cb4946a8f6dd0d76e1b50e7ce226b (patch)
treeafaef37a4fc6fc46888cd7131ac5ebe8436efcfd /apps/files/js
parent543c8634340607c5dd088b9cbdcd85700222ee0b (diff)
parentc5d3febf37f739b9ffbab636914f2ab368f68bbb (diff)
downloadnextcloud-server-93007b6bdb2cb4946a8f6dd0d76e1b50e7ce226b.tar.gz
nextcloud-server-93007b6bdb2cb4946a8f6dd0d76e1b50e7ce226b.zip
Merge pull request #11926 from stweil/declarations
Add missing variable declarations
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/newfilemenu.js2
-rw-r--r--apps/files/js/sidebarpreviewmanager.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js
index 01a183a33a7..69450e97c2a 100644
--- a/apps/files/js/newfilemenu.js
+++ b/apps/files/js/newfilemenu.js
@@ -171,7 +171,7 @@
/* Find the right actionHandler that should be called.
* Actions is retrieved by using `actionSpec.id` */
- action = _.filter(self._menuItems, function(item) {
+ var action = _.filter(self._menuItems, function(item) {
return item.id == $target.attr('data-action');
}).pop();
action.actionHandler(newname);
diff --git a/apps/files/js/sidebarpreviewmanager.js b/apps/files/js/sidebarpreviewmanager.js
index 27ccd4fc405..69528ce4e43 100644
--- a/apps/files/js/sidebarpreviewmanager.js
+++ b/apps/files/js/sidebarpreviewmanager.js
@@ -9,7 +9,7 @@
*/
(function () {
- SidebarPreviewManager = function (fileList) {
+ var SidebarPreviewManager = function (fileList) {
this._fileList = fileList;
this._previewHandlers = {};
OC.Plugins.attach('OCA.Files.SidebarPreviewManager', this);