summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-20 21:57:50 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-20 21:57:50 +0100
commit3b9d9eea09bc7ccaad1445882f60ec2478bc34d0 (patch)
tree831ec9b6e59aa1186b31fda53e61ff3bff598e6e /apps/files
parentfbfd54d2a057a0d9fb5c1e82bac6ed9936318a78 (diff)
downloadnextcloud-server-3b9d9eea09bc7ccaad1445882f60ec2478bc34d0.tar.gz
nextcloud-server-3b9d9eea09bc7ccaad1445882f60ec2478bc34d0.zip
replaced for in loops with normal enumerating loops to fix #1803
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index cc107656da8..0bf1f79ab77 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -315,8 +315,8 @@ var FileList={
do_delete:function(files){
if(files.substr){
files=[files];
- }
- for (var i in files) {
+ }
+ 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 newHTML = '<img class="move2trash" data-action="Delete" title="'+t('files', 'perform delete operation')+'" src="'+ OC.imagePath('core', 'loading.gif') +'"></a>';