diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 3bf109f37..be178607f 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -581,7 +581,10 @@
}
});
-
+ //查询学校
+ $("input[name='province']").on('input', function (e) {
+ throttle(shcool_search_fn,window,e);
+ });
function throttle(method,context,e){
clearTimeout(method.tId);
@@ -603,10 +606,7 @@
type: 'post',
success: function (data) {
schoolsResult = data.schools;
- count = data.count; //查询学校
- $("input[name='province']").on('input', function (e) {
- throttle(shcool_search_fn,window,e);
- });
+ count = data.count;
maxPage = Math.ceil(count/100) //最大页码值
if(schoolsResult.length != undefined && schoolsResult.length != 0) {
var i = 0;