From 203796edf86edfc3bf278930e1d5eeccf2e16883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E9=B1=BC=28iFish=29?= Date: Tue, 8 Dec 2015 19:51:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=97=A5=E6=9C=9F=E8=BD=AE?= =?UTF-8?q?=E8=AF=A2=E5=AF=BC=E8=87=B4=E7=9A=84=E8=B7=A8=E7=AB=99=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web12306/js/otn/trainstationsuggest.js | 2 +- Web12306/js/ui/ui-autorefresh.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Web12306/js/otn/trainstationsuggest.js b/Web12306/js/otn/trainstationsuggest.js index ecc8302..0a514f9 100644 --- a/Web12306/js/otn/trainstationsuggest.js +++ b/Web12306/js/otn/trainstationsuggest.js @@ -189,7 +189,7 @@ }; this.setQueryResult = function (result, queryCount) { - if (queryCount < startQueryLimit || isInQuery || isSuggestLoopDisabled) + if (queryCount < startQueryLimit || isInQuery || isSuggestLoopDisabled||sessmgr.currentProfile.inLoop) return; queryResult = result; diff --git a/Web12306/js/ui/ui-autorefresh.js b/Web12306/js/ui/ui-autorefresh.js index 831d930..8919d2a 100644 --- a/Web12306/js/ui/ui-autorefresh.js +++ b/Web12306/js/ui/ui-autorefresh.js @@ -314,9 +314,12 @@ $("#date_loop_editor>span.selected").removeClass("selected"); if (currentDateLoopIndex > sessMgr.currentProfile.dateloop.length - 1) { - sessMgr.currentProfile.depDate = $("#dep_date").val(); + sessMgr.currentProfile.depDate = sessMgr.currentProfile.trueDate; + sessMgr.currentProfile.inLoop=false; currentDateLoopIndex = -1; } else { + sessMgr.currentProfile.trueDate=sessMgr.currentProfile.depDate; + sessMgr.currentProfile.inLoop=true; sessMgr.currentProfile.depDate = sessMgr.currentProfile.dateloop[currentDateLoopIndex]; $("#date_loop_editor>span:eq(" + currentDateLoopIndex + ")").addClass("selected"); }