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_trashbin/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_trashbin/js')
-rw-r--r-- | apps/files_trashbin/js/app.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_trashbin/js/app.js b/apps/files_trashbin/js/app.js index 600a8ce2b03..771ea90bc16 100644 --- a/apps/files_trashbin/js/app.js +++ b/apps/files_trashbin/js/app.js @@ -49,7 +49,7 @@ OCA.Trashbin.App = { type: OCA.Files.FileActions.TYPE_INLINE, mime: 'all', permissions: OC.PERMISSION_READ, - icon: OC.imagePath('core', 'actions/history'), + iconClass: 'icon-history', actionHandler: function(filename, context) { var fileList = context.fileList; var tr = fileList.findFileEl(filename); @@ -70,9 +70,7 @@ OCA.Trashbin.App = { displayName: t('files', 'Delete'), mime: 'all', permissions: OC.PERMISSION_READ, - icon: function() { - return OC.imagePath('core', 'actions/delete'); - }, + iconClass: 'icon-delete', render: function(actionSpec, isDefault, context) { var $actionLink = fileActions._makeActionLink(actionSpec, context); $actionLink.attr('original-title', t('files_trashbin', 'Delete permanently')); |