diff --git a/app/assets/javascripts/admin/filemanager.js b/app/assets/javascripts/admin/filemanager.js index 33110a2bd..2558cb46c 100644 --- a/app/assets/javascripts/admin/filemanager.js +++ b/app/assets/javascripts/admin/filemanager.js @@ -69,7 +69,7 @@ $(document).ready(function(){ $("input[type=checkbox]:checked").each(function(){ items_to_delete.push($(this).val()); }) - $.post("<%= delete_files_admin_assets_path %>",{"files":items_to_delete,"type":type},function(){ + $.post("/admin/assets/delete_files",{"files":items_to_delete,"type":type},function(){ deleteBtn.hide(); }) })