summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/files_drop.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-10-15 11:54:57 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-16 08:27:06 +0200
commitbee5bbbf0e3de3f6cc153ae15f0a70c710ff1a8d (patch)
tree3702ccbdc8e380a5eb13bbb215d3f965493a0c61 /apps/files_sharing/js/files_drop.js
parent5aaa8a8b5815a24245da6c7a91efb2564492c13f (diff)
downloadnextcloud-server-bee5bbbf0e3de3f6cc153ae15f0a70c710ff1a8d.tar.gz
nextcloud-server-bee5bbbf0e3de3f6cc153ae15f0a70c710ff1a8d.zip
Move files_drop to compiled handlebars
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
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'];
}
};