summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-07-29 19:27:11 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-07-29 19:27:11 +0300
commit33fe24dc3d12868d79f9b137e9e91eba2b3e5028 (patch)
tree74594c254eb7d456050d109cad7da30b40af88e4 /apps
parent2a420218156d1e4ed3f88a50fd3b0d60476eeeb9 (diff)
downloadnextcloud-server-33fe24dc3d12868d79f9b137e9e91eba2b3e5028.tar.gz
nextcloud-server-33fe24dc3d12868d79f9b137e9e91eba2b3e5028.zip
Replace delete icon with spinner
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 04a9fb91649..dc820dc93e2 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -371,9 +371,7 @@ 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.html();
- var newHTML = '<img class="move2trash" data-action="Delete" title="'+t('files', 'perform delete operation')+'" src="'+ OC.imagePath('core', 'loading.gif') +'"></a>';
- deleteAction.html(newHTML);
+ deleteAction.removeClass('delete-icon').addClass('progress-icon');
}
// Finish any existing actions
if (FileList.lastAction) {
@@ -394,8 +392,8 @@ var FileList={
procesSelection();
} else {
$.each(files,function(index,file) {
- var deleteAction = $('tr').filterAttr('data-file',file).children("td.date").children(".move2trash");
- deleteAction.html(oldHTML);
+ var deleteAction = $('tr').filterAttr('data-file',files[i]).children("td.date").children(".action.delete");
+ deleteAction.removeClass('progress-icon').addClass('delete-icon');
});
}
});