diff --git a/vendor/built_in_modules/ask_new/app/views/panel/ask/back_end/ask_questions/edit.html.erb b/vendor/built_in_modules/ask_new/app/views/panel/ask/back_end/ask_questions/edit.html.erb
index 9ce8043c5..4c44fc790 100644
--- a/vendor/built_in_modules/ask_new/app/views/panel/ask/back_end/ask_questions/edit.html.erb
+++ b/vendor/built_in_modules/ask_new/app/views/panel/ask/back_end/ask_questions/edit.html.erb
@@ -15,7 +15,7 @@ $(document).ready(function() {
if ($("#ask_reply_status").val() == '轉介其他單位') {
- var local_host = "<%= request.host %>:<%= request.port %>";
+ var local_host = "<%= request.ip %>:<%= request.port %>";
hide_current_host_name(local_host);
@@ -82,8 +82,8 @@ $(document).ready(function() {
- <%= check_box("school", "depts", {:multiple => true}, "localhost:3000", nil) %><%= label_tag("localhost:3000", "總務長室暨總務處秘書室") %>
- <%= check_box("school", "depts", {:multiple => true}, "localhost:4000", nil) %><%= label_tag("localhost:4000", "文書組") %>
+ <%= check_box("school", "depts", {:multiple => true}, "127.0.0.1:3000", nil) %><%= label_tag("127.0.0.1:3000", "總務長室暨總務處秘書室") %>
+ <%= check_box("school", "depts", {:multiple => true}, "127.0.0.1:4000", nil) %><%= label_tag("127.0.0.1:4000", "文書組") %>
<%= check_box("school", "depts", {:multiple => true}, "事務組", nil) %><%= label_tag(:dep3, "事務組") %>
<%= check_box("school", "depts", {:multiple => true}, "保管組", nil) %><%= label_tag(:dep4, "保管組") %>
<%= check_box("school", "depts", {:multiple => true}, "營繕組", nil) %><%= label_tag(:dep5, "營繕組") %>
|