diff --git a/app/views/courses/_course_form.html.erb b/app/views/courses/_course_form.html.erb
index 1b1c86b64..4324c5d47 100644
--- a/app/views/courses/_course_form.html.erb
+++ b/app/views/courses/_course_form.html.erb
@@ -2,7 +2,7 @@
function get_options(value) {
$.ajax({
type: "POST",
- url: '/school/get_options/' + encodeURIComponent(value),
+ url: 'http://<%= Setting.host_name%>/school/get_options/' + encodeURIComponent(value),
data: 'text',
success: function (data) {
$("#occupation").html(data);
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 8f118de05..2ff3f4c90 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -16,10 +16,10 @@
function get_options(value) {
$.ajax({
type: "POST",
- url: '<%= Setting.host_name == "micros.nudt.edu.cn" ? '/ros/school/get_options/' : '/school/get_options/'%>' + encodeURIComponent(value),
+ url: 'http://<%= Setting.host_name%>/school/get_options/' + encodeURIComponent(value),
data: 'text',
success: function (data) {
- $("#province").val(value)
+ $("#province").val(value);
$("#schoollist").html(data);
}
});