This commit is contained in:
bee0005 2016-09-05 16:12:24 +00:00
parent 848255a822
commit f2a1e1142c
2 changed files with 4 additions and 5 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

@ -135,7 +135,6 @@
<p class="text-muted font-13 m-b-30"> <code> Current directory : <span id="select_dir"><%=@current_dir%></span></code></p>
<p style="text-align:right;" >
<a class="btn btn-default" href="#popup_mkdir"><i class="fa fa-plus"></i> Make Directory</a>
<a class="btn btn-default" href="#loading"><i class="fa fa-plus"></i> Loading Test</a>
</p>
<table id="datatable" class="table table-striped table-bordered jambo_table">
<thead>
@ -225,11 +224,11 @@
data: { file_name: $("#delete_name").val() },
success : function(result){
change_directory($("#select_dir").text());
$(location).attr('href', "#");
}
})
$(".contextmenu").hide();
$(document).unbind('mousedown');
$(location).attr('href', "#");
});
</script>
<!-- file manager functions -->