diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-07-29 19:27:11 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-07-29 19:27:11 +0300 |
commit | 33fe24dc3d12868d79f9b137e9e91eba2b3e5028 (patch) | |
tree | 74594c254eb7d456050d109cad7da30b40af88e4 /apps | |
parent | 2a420218156d1e4ed3f88a50fd3b0d60476eeeb9 (diff) | |
download | nextcloud-server-33fe24dc3d12868d79f9b137e9e91eba2b3e5028.tar.gz nextcloud-server-33fe24dc3d12868d79f9b137e9e91eba2b3e5028.zip |
Replace delete icon with spinner
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 8 |
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'); }); } }); |