update
This commit is contained in:
parent
6d1813933f
commit
4556bbf044
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user