diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-07-05 23:17:43 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-07-08 12:35:33 +0200 |
commit | 951ff0897c4d8d5b234e74560c3ac4541b8784be (patch) | |
tree | 54b84dc8a53f1ee8c7853dbbfe557df8376b19f8 | |
parent | f0b9eba9c2a2615ccdc53e2f36fa49473c3bbaf1 (diff) | |
download | nextcloud-server-951ff0897c4d8d5b234e74560c3ac4541b8784be.tar.gz nextcloud-server-951ff0897c4d8d5b234e74560c3ac4541b8784be.zip |
hint global handlebars
-rw-r--r-- | apps/files_external/js/statusmanager.js | 6 | ||||
-rw-r--r-- | apps/files_sharing/js/sharetabview.js | 2 | ||||
-rw-r--r-- | apps/files_versions/js/versionstabview.js | 2 |
3 files changed, 8 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'); diff --git a/apps/files_sharing/js/sharetabview.js b/apps/files_sharing/js/sharetabview.js index e24320604fb..2c7070aa3d5 100644 --- a/apps/files_sharing/js/sharetabview.js +++ b/apps/files_sharing/js/sharetabview.js @@ -8,6 +8,8 @@ * */ +/* @global Handlebars */ + (function() { var TEMPLATE = '<div>' + diff --git a/apps/files_versions/js/versionstabview.js b/apps/files_versions/js/versionstabview.js index b9ccf03c3e2..2424778b4ee 100644 --- a/apps/files_versions/js/versionstabview.js +++ b/apps/files_versions/js/versionstabview.js @@ -8,6 +8,8 @@ * */ +/* @global Handlebars */ + (function() { var TEMPLATE_ITEM = '<li data-revision="{{timestamp}}">' + |