From aa1078340e83aeea8eb1ab9d9d13dd3828bd7230 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 30 Nov 2017 18:15:22 +0800 Subject: [PATCH] url change --- app/views/admin/site_panel/_form.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/admin/site_panel/_form.html.erb b/app/views/admin/site_panel/_form.html.erb index 7124dd5..cd8c68f 100644 --- a/app/views/admin/site_panel/_form.html.erb +++ b/app/views/admin/site_panel/_form.html.erb @@ -104,9 +104,9 @@ var school = $("#school_name").val(); type = (type == "School" ? "school_sites" : "orbit_sites" ); if(school != ""){ - $("#path").val("/home/rulingcom/" + type + "/" + school + "/"); + $("#path").val("/home/rulingcom/" + type + "/" + school); }else{ - $("#path").val("/home/rulingcom/" + type + "/"); + $("#path").val("/home/rulingcom/" + type); } }) $("#site_name").on("blur",function(){ @@ -117,9 +117,9 @@ $("#db_name").val(val); type = (type == "School" ? "school_sites" : "orbit_sites" ); if(school != ""){ - $("#path").val("/home/rulingcom/" + type + "/" + school + "/") + $("#path").val("/home/rulingcom/" + type + "/" + school); }else{ - $("#path").val("/home/rulingcom/" + type + "/"); + $("#path").val("/home/rulingcom/" + type); } }) $("#site_construct_site_type").val("School");