use background image instead of img for Files delete icon
This commit is contained in:
parent
cab792323d
commit
197c979d26
|
@ -125,12 +125,9 @@ var FileActions = {
|
||||||
if (typeof trashBinApp !== 'undefined' && trashBinApp) {
|
if (typeof trashBinApp !== 'undefined' && trashBinApp) {
|
||||||
var html = '<a href="#" original-title="' + t('files', 'Delete permanently') + '" class="action delete" />';
|
var html = '<a href="#" original-title="' + t('files', 'Delete permanently') + '" class="action delete" />';
|
||||||
} else {
|
} 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);
|
var element = $(html);
|
||||||
if (img) {
|
|
||||||
element.append($('<img class ="svg" src="' + img + '"/>'));
|
|
||||||
}
|
|
||||||
element.data('action', actions['Delete']);
|
element.data('action', actions['Delete']);
|
||||||
element.on('click', {a: null, elem: parent, actionFunc: actions['Delete']}, actionHandler);
|
element.on('click', {a: null, elem: parent, actionFunc: actions['Delete']}, actionHandler);
|
||||||
parent.parent().children().last().append(element);
|
parent.parent().children().last().append(element);
|
||||||
|
|
|
@ -659,6 +659,10 @@ div.crumb:active {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* icons */
|
/* icons */
|
||||||
|
.folder-icon, .delete-icon, .edit-icon {
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
.folder-icon { background-image: url('../img/places/folder.svg'); }
|
.folder-icon { background-image: url('../img/places/folder.svg'); }
|
||||||
.delete-icon { background-image: url('../img/actions/delete.svg'); }
|
.delete-icon { background-image: url('../img/actions/delete.svg'); }
|
||||||
.delete-icon:hover, .delete-icon:focus {
|
.delete-icon:hover, .delete-icon:focus {
|
||||||
|
|
Loading…
Reference in New Issue