diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-10-16 12:16:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-16 12:16:31 +0200 |
commit | 2849f2415425feab04a691318f50577d16c8ec1a (patch) | |
tree | 1b615197607da3a82492ea25cd3d7d439ebc6190 /apps/files_sharing/js/files_drop.js | |
parent | ad66b0f9ab010ee00d249d6f8512d30332e8a0af (diff) | |
parent | 6c532576eea0e8a163989d319a17a6419956bd03 (diff) | |
download | nextcloud-server-2849f2415425feab04a691318f50577d16c8ec1a.tar.gz nextcloud-server-2849f2415425feab04a691318f50577d16c8ec1a.zip |
Merge pull request #11839 from nextcloud/csp/files_drop
Move files_drop to compiled handlebars
Diffstat (limited to 'apps/files_sharing/js/files_drop.js')
-rw-r--r-- | apps/files_sharing/js/files_drop.js | 14 |
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']; } }; |