aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/js/statusmanager.js
diff options
context:
space:
mode:
authorRoeland Douma <rullzer@users.noreply.github.com>2016-07-08 13:49:42 +0200
committerGitHub <noreply@github.com>2016-07-08 13:49:42 +0200
commit48f9e4ed03f3148d62919a95496ee43164d3e707 (patch)
tree473604ce19265a36c8230bc5efc01ca906152f80 /apps/files_external/js/statusmanager.js
parenta84250e0afdb98d07b268914b56c8763c17f5a73 (diff)
parent6da066e7be9ad77f9591d993df92156c9f184624 (diff)
downloadnextcloud-server-48f9e4ed03f3148d62919a95496ee43164d3e707.tar.gz
nextcloud-server-48f9e4ed03f3148d62919a95496ee43164d3e707.zip
Merge pull request #317 from nextcloud/scrutinizer-fixed
Scrutinizer fixes
Diffstat (limited to 'apps/files_external/js/statusmanager.js')
-rw-r--r--apps/files_external/js/statusmanager.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_external/js/statusmanager.js b/apps/files_external/js/statusmanager.js
index 91974f2d04d..437e9178d24 100644
--- a/apps/files_external/js/statusmanager.js
+++ b/apps/files_external/js/statusmanager.js
@@ -12,6 +12,8 @@
*
*/
+/** @global Handlebars */
+
if (!OCA.External) {
OCA.External = {};
}
@@ -502,7 +504,7 @@ OCA.External.StatusManager.Utils = {
trFolder = $('#fileList tr[data-file=\"' + OCA.External.StatusManager.Utils.jqSelEscape(folder) + '\"]');
}
trFolder.removeClass('externalErroredRow').removeClass('externalDisabledRow');
- tdChilds = trFolder.find("td:first-child div.thumbnail");
+ var tdChilds = trFolder.find("td:first-child div.thumbnail");
tdChilds.each(function () {
var thisElement = $(this);
thisElement.css('background-image', thisElement.data('oldImage'));
@@ -525,7 +527,7 @@ OCA.External.StatusManager.Utils = {
});
} else {
file = $("#fileList tr[data-file=\"" + this.jqSelEscape(filename) + "\"] > td:first-child div.thumbnail");
- parentTr = file.parents('tr:first');
+ var parentTr = file.parents('tr:first');
route = OCA.External.StatusManager.Utils.getIconRoute(parentTr);
parentTr.attr("data-icon", route);
file.css('background-image', "url(" + route + ")").css('display', 'none').css('display', 'inline');