summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-04-19 13:46:11 +0200
committerBart Visscher <bartv@thisnet.nl>2013-04-19 13:46:11 +0200
commit802a5a331bf645ab3cc17e9849a7719146b1d54b (patch)
treea9b12e922ff327832e78eac9ff313b3859aa8af2 /apps/files
parenta21885953f3420e2262fecaa0d75c4d40c2a0513 (diff)
downloadnextcloud-server-802a5a331bf645ab3cc17e9849a7719146b1d54b.tar.gz
nextcloud-server-802a5a331bf645ab3cc17e9849a7719146b1d54b.zip
Fix displaying spinner on delete
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 70c3332ccaf..b1e9a885063 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -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);
});
}
});