diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-17 11:04:29 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-02-25 22:49:52 +0100 |
commit | 92cff0984dffafcc6caa21f9662785cad92f5d96 (patch) | |
tree | dc5258bd739290cf3c2ba3f04fa580399827f9da /apps/files/js/filelist.js | |
parent | cb41b1a86397579d55e0ce96e67b80a83037d1d2 (diff) | |
download | nextcloud-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/filelist.js')
-rw-r--r-- | apps/files/js/filelist.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 81dfea2114d..95fdac02c2d 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -10,7 +10,10 @@ (function() { - var TEMPLATE_ADDBUTTON = '<a href="#" class="button new"><img src="{{iconUrl}}" alt="{{addText}}"></img></a>'; + var TEMPLATE_ADDBUTTON = '<a href="#" class="button new">' + + '<span class="icon {{iconClass}}"></span>' + + '<span class="hidden-visually">{{addText}}</span>' + + '</a>'; /** * @class OCA.Files.FileList @@ -329,7 +332,7 @@ displayName: t('files', 'Details'), mime: 'all', order: -50, - icon: OC.imagePath('core', 'actions/details'), + iconClass: 'icon-details', permissions: OC.PERMISSION_READ, actionHandler: function(fileName, context) { self._updateDetailsView(fileName); @@ -2715,7 +2718,7 @@ } var $newButton = $(this._addButtonTemplate({ addText: t('files', 'New'), - iconUrl: OC.imagePath('core', 'actions/add') + iconClass: 'icon-add' })); $actionsContainer.prepend($newButton); |