aboutsummaryrefslogtreecommitdiffstats
path: root/files/js/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'files/js/files.js')
-rw-r--r--files/js/files.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/files/js/files.js b/files/js/files.js
index 4bf1c77fdbd..06d5dbf0328 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -113,6 +113,25 @@ $(document).ready(function() {
window.location='ajax/download.php?files='+files+'&dir='+dir;
return false;
});
+
+ $('.delete').click(function(event) {
+ var files='';
+ $('td.selection input:checkbox:checked').parent().parent().children('.filename').each(function(i,element){
+ files+=';'+$(element).text();
+ });
+ files=files.substr(1);//remove leading ;
+
+ //send the browser to the download location
+ $.ajax({
+ url: 'ajax/delete.php',
+ data: "dir="+$('#dir').val()+"&files="+files,
+ complete: function(data){
+ boolOperationFinished(data, false);
+ }
+ });
+
+ return false;
+ });
});
function uploadFinished() {