parent
6530c657ee
commit
898fe7e9c9
|
@ -2,7 +2,7 @@
|
||||||
function get_options(value) {
|
function get_options(value) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: '/school/get_options/' + encodeURIComponent(value),
|
url: 'http://<%= Setting.host_name%>/school/get_options/' + encodeURIComponent(value),
|
||||||
data: 'text',
|
data: 'text',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#occupation").html(data);
|
$("#occupation").html(data);
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
function get_options(value) {
|
function get_options(value) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
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',
|
data: 'text',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$("#province").val(value)
|
$("#province").val(value);
|
||||||
$("#schoollist").html(data);
|
$("#schoollist").html(data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue