From bee5bbbf0e3de3f6cc153ae15f0a70c710ff1a8d Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 15 Oct 2018 11:54:57 +0200 Subject: Move files_drop to compiled handlebars Signed-off-by: Roeland Jago Douma --- apps/files_sharing/js/files_drop.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'apps/files_sharing/js/files_drop.js') 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 = - '
  • ' + - '{{#if isUploading}}' + - ' {{name}}' + - '{{else}}' + - ' {{name}}' + - '{{/if}}' + - '
  • '; + 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']; } }; -- cgit v1.2.3