summaryrefslogtreecommitdiffstats
path: root/files/js/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'files/js/files.js')
-rw-r--r--files/js/files.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/files/js/files.js b/files/js/files.js
index 7842c680300..e1ac4e172fc 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -107,9 +107,11 @@ $(document).ready(function() {
data: "dir="+$('#dir').val()+"&files="+encodeURIComponent(files),
complete: function(data){
boolOperationFinished(data, function(){
- $('td.filename input:checkbox:checked').parent().parent().each(function(i,element){
- FileList.remove($(element).data('file'));
- });
+ var files=getSelectedFiles('name');
+ for(var i=0;i<files.length;i++){
+ FileList.remove(files[i]);
+ }
+ procesSelection();
});
}
});