properly replace fileaction icons with pngs when needed
This commit is contained in:
parent
6695b29053
commit
0fbb99690b
|
@ -82,7 +82,7 @@ var FileActions = {
|
||||||
}
|
}
|
||||||
var html = '<a href="#" class="action">';
|
var html = '<a href="#" class="action">';
|
||||||
if (img) {
|
if (img) {
|
||||||
html += '<img src="' + img + '"/> ';
|
html += '<img class ="svg" src="' + img + '"/> ';
|
||||||
}
|
}
|
||||||
html += t('files', name) + '</a>';
|
html += t('files', name) + '</a>';
|
||||||
var element = $(html);
|
var element = $(html);
|
||||||
|
@ -111,7 +111,7 @@ var FileActions = {
|
||||||
}
|
}
|
||||||
var element = $(html);
|
var element = $(html);
|
||||||
if (img) {
|
if (img) {
|
||||||
element.append($('<img src="' + img + '"/>'));
|
element.append($('<img class ="svg" src="' + img + '"/>'));
|
||||||
}
|
}
|
||||||
element.data('action', 'Delete');
|
element.data('action', 'Delete');
|
||||||
element.click(function (event) {
|
element.click(function (event) {
|
||||||
|
|
Loading…
Reference in New Issue