aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactionsmenu.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-02-17 11:04:29 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-02-25 22:49:52 +0100
commit92cff0984dffafcc6caa21f9662785cad92f5d96 (patch)
treedc5258bd739290cf3c2ba3f04fa580399827f9da /apps/files/js/fileactionsmenu.js
parentcb41b1a86397579d55e0ce96e67b80a83037d1d2 (diff)
downloadnextcloud-server-92cff0984dffafcc6caa21f9662785cad92f5d96.tar.gz
nextcloud-server-92cff0984dffafcc6caa21f9662785cad92f5d96.zip
Make file actions use icon CSS classes
This makes theming of file actions possible
Diffstat (limited to 'apps/files/js/fileactionsmenu.js')
-rw-r--r--apps/files/js/fileactionsmenu.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/files/js/fileactionsmenu.js b/apps/files/js/fileactionsmenu.js
index 9e51d8f1f1f..45d2bd83049 100644
--- a/apps/files/js/fileactionsmenu.js
+++ b/apps/files/js/fileactionsmenu.js
@@ -14,7 +14,16 @@
'<ul>' +
'{{#each items}}' +
'<li>' +
- '<a href="#" class="menuitem action action-{{nameLowerCase}} permanent" data-action="{{name}}">{{#if icon}}<img class="icon" src="{{icon}}"/>{{else}}<span class="no-icon"></span>{{/if}}<span>{{displayName}}</span></a>' +
+ '<a href="#" class="menuitem action action-{{nameLowerCase}} permanent" data-action="{{name}}">' +
+ '{{#if icon}}<img class="icon" src="{{icon}}"/>' +
+ '{{else}}'+
+ '{{#if iconClass}}' +
+ '<span class="icon {{iconClass}}"></span>' +
+ '{{else}}' +
+ '<span class="no-icon"></span>' +
+ '{{/if}}' +
+ '{{/if}}' +
+ '<span>{{displayName}}</span></a>' +
'</li>' +
'{{/each}}' +
'</ul>';