зеркало из https://github.com/nextcloud/server.git
Merge pull request #1809 from owncloud/fix_ie_deletefolder
replaced for in loops with normal enumerating loops to fix #1803
This commit is contained in:
Коммит
d2f9c3e8e7
|
@ -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>';
|
||||
|
|
|
@ -88,7 +88,7 @@ $(document).ready(function() {
|
|||
}
|
||||
}
|
||||
processSelection();
|
||||
});
|
||||
});
|
||||
|
||||
$('.undelete').click('click',function(event) {
|
||||
var spinner = '<img class="move2trash" title="'+t('files_trashbin', 'perform restore operation')+'" src="'+ OC.imagePath('core', 'loader.gif') +'"></a>';
|
||||
|
@ -96,7 +96,7 @@ $(document).ready(function() {
|
|||
var fileslist=files.join(';');
|
||||
var dirlisting=getSelectedFiles('dirlisting')[0];
|
||||
|
||||
for (var i in files) {
|
||||
for (var i=0; i<files.length; i++) {
|
||||
var undeleteAction = $('tr').filterAttr('data-file',files[i]).children("td.date");
|
||||
undeleteAction[0].innerHTML = undeleteAction[0].innerHTML+spinner;
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ $(document).ready(function() {
|
|||
if (result.status != 'success') {
|
||||
OC.dialogs.alert(result.data.message, 'Error');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче