diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-07-18 18:40:09 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-07-18 18:40:09 +0200 |
commit | 197c979d264f15d82e991f45c7155b2172aae3c6 (patch) | |
tree | 3be2dd267ccdc2b7c465a1ae3503d6e011bdf9a9 | |
parent | cab792323d4c136ed336442d7ae6bb9559955591 (diff) | |
download | nextcloud-server-197c979d264f15d82e991f45c7155b2172aae3c6.tar.gz nextcloud-server-197c979d264f15d82e991f45c7155b2172aae3c6.zip |
use background image instead of img for Files delete icon
-rw-r--r-- | apps/files/js/fileactions.js | 5 | ||||
-rw-r--r-- | core/css/styles.css | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index aa66a57a7b5..bb0a27638e4 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -125,12 +125,9 @@ var FileActions = { if (typeof trashBinApp !== 'undefined' && trashBinApp) { var html = '<a href="#" original-title="' + t('files', 'Delete permanently') + '" class="action delete" />'; } else { - var html = '<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete" />'; + var html = '<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete delete-icon" />'; } var element = $(html); - if (img) { - element.append($('<img class ="svg" src="' + img + '"/>')); - } element.data('action', actions['Delete']); element.on('click', {a: null, elem: parent, actionFunc: actions['Delete']}, actionHandler); parent.parent().children().last().append(element); diff --git a/core/css/styles.css b/core/css/styles.css index 94520a4e0cb..46972331df9 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -659,6 +659,10 @@ div.crumb:active { } /* icons */ +.folder-icon, .delete-icon, .edit-icon { + background-repeat: no-repeat; + background-position: center; +} .folder-icon { background-image: url('../img/places/folder.svg'); } .delete-icon { background-image: url('../img/actions/delete.svg'); } .delete-icon:hover, .delete-icon:focus { |