diff options
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r-- | apps/files/js/fileactions.js | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 4fcb290ca8b..5af558d77ba 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -10,17 +10,6 @@ (function() { - var TEMPLATE_FILE_ACTION_TRIGGER = - '<a class="action action-{{nameLowerCase}}" href="#" data-action="{{name}}">' + - '{{#if icon}}' + - '<img class="svg" alt="{{altText}}" src="{{icon}}" />' + - '{{else}}' + - '{{#if iconClass}}<span class="icon {{iconClass}}" />{{/if}}' + - '{{#unless hasDisplayName}}<span class="hidden-visually">{{altText}}</span>{{/unless}}' + - '{{/if}}' + - '{{#if displayName}}<span> {{displayName}}</span>{{/if}}' + - '</a>'; - /** * Construct a new FileActions instance * @constructs FileActions @@ -335,11 +324,7 @@ * @param {Object} params action params */ _makeActionLink: function(params) { - if (!this._fileActionTriggerTemplate) { - this._fileActionTriggerTemplate = Handlebars.compile(TEMPLATE_FILE_ACTION_TRIGGER); - } - - return $(this._fileActionTriggerTemplate(params)); + return $(OCA.Files.Templates['file_action_trigger'](params)); }, /** |