summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/files_drop.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/js/files_drop.js')
-rw-r--r--apps/files_sharing/js/files_drop.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/apps/files_sharing/js/files_drop.js b/apps/files_sharing/js/files_drop.js
index 8d1273f1872..d10a61e0dfc 100644
--- a/apps/files_sharing/js/files_drop.js
+++ b/apps/files_sharing/js/files_drop.js
@@ -9,14 +9,7 @@
*/
(function ($) {
- var TEMPLATE =
- '<li data-toggle="tooltip" title="{{name}}" data-name="{{name}}">' +
- '{{#if isUploading}}' +
- '<span class="icon-loading-small"></span> {{name}}' +
- '{{else}}' +
- '<img src="{{iconSrc}}"/> {{name}}' +
- '{{/if}}' +
- '</li>';
+
var Drop = {
/** @type {Function} **/
_template: undefined,
@@ -130,10 +123,7 @@
* @private
*/
template: function () {
- if (!this._template) {
- this._template = Handlebars.compile(TEMPLATE);
- }
- return this._template;
+ return OCA.Sharing.Templates['files_drop'];
}
};