From 4556bbf044c6ac1ec9c781c74f630de84ad3e72c Mon Sep 17 00:00:00 2001 From: bee0005 Date: Mon, 5 Sep 2016 15:44:30 +0000 Subject: [PATCH] update --- app/controllers/home_controller.rb | 2 +- app/views/home/index.html.erb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 20b15e5..16490f4 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -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 diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 78299e9..11cc70b 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,7 +1,7 @@
@@ -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();