From 898fe7e9c983fe2af78b712cdb809d6d4dc9196e Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Tue, 21 Oct 2014 09:28:38 +0800 Subject: [PATCH] =?UTF-8?q?#982=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=B3=95=E9=80=89=E6=8B=A9=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E7=9A=84BUG=20=E4=BF=AE=E5=A4=8D=E5=AD=A6?= =?UTF-8?q?=E6=A0=A1=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/_course_form.html.erb | 2 +- app/views/my/account.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } });