Fix displaying spinner on delete
This commit is contained in:
parent
a21885953f
commit
802a5a331b
1 changed files with 3 additions and 3 deletions
|
@ -320,9 +320,9 @@ var FileList={
|
|||
}
|
||||
for (var i=0; i<files.length; i++) {
|
||||
var deleteAction = $('tr').filterAttr('data-file',files[i]).children("td.date").children(".action.delete");
|
||||
var oldHTML = deleteAction[0].outerHTML;
|
||||
var oldHTML = deleteAction.html();
|
||||
var newHTML = '<img class="move2trash" data-action="Delete" title="'+t('files', 'perform delete operation')+'" src="'+ OC.imagePath('core', 'loading.gif') +'"></a>';
|
||||
deleteAction[0].outerHTML = newHTML;
|
||||
deleteAction.html(newHTML);
|
||||
}
|
||||
// Finish any existing actions
|
||||
if (FileList.lastAction) {
|
||||
|
@ -344,7 +344,7 @@ var FileList={
|
|||
} else {
|
||||
$.each(files,function(index,file) {
|
||||
var deleteAction = $('tr').filterAttr('data-file',file).children("td.date").children(".move2trash");
|
||||
deleteAction[0].outerHTML = oldHTML;
|
||||
deleteAction.html(oldHTML);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue