This commit is contained in:
bee0005 2016-09-05 15:44:30 +00:00
parent 6d1813933f
commit 4556bbf044
2 changed files with 3 additions and 4 deletions

View File

@ -19,7 +19,7 @@ class HomeController < ApplicationController
def delete_file
file_name = params[:file_name]
puts "rm #{file_name} -rf"
#`rm #{file_name} -rf`
`rm #{file_name} -rf`
redirect_to '/home/index'
end
end

View File

@ -1,7 +1,7 @@
<div class="contextmenu Del_dir">
<ul>
<li class="menuitem"><i class="fa fa-trash"></i>Delete</li>
<input value="Zzz" id="delete_name"></input>
<input id="delete_name" type="hidden"></input>
</ul>
</div>
@ -221,8 +221,7 @@
url: "/home/delete",
data: { file_name: $("#delete_name").val() },
success : function(result){
//alert("aa");
change_directory($("#select_dir").text());
}
})
$(".contextmenu").hide();