修正日期轮询导致的跨站异常
This commit is contained in:
parent
03aaa84a2a
commit
203796edf8
@ -189,7 +189,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.setQueryResult = function (result, queryCount) {
|
this.setQueryResult = function (result, queryCount) {
|
||||||
if (queryCount < startQueryLimit || isInQuery || isSuggestLoopDisabled)
|
if (queryCount < startQueryLimit || isInQuery || isSuggestLoopDisabled||sessmgr.currentProfile.inLoop)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
queryResult = result;
|
queryResult = result;
|
||||||
|
@ -314,9 +314,12 @@
|
|||||||
|
|
||||||
$("#date_loop_editor>span.selected").removeClass("selected");
|
$("#date_loop_editor>span.selected").removeClass("selected");
|
||||||
if (currentDateLoopIndex > sessMgr.currentProfile.dateloop.length - 1) {
|
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;
|
currentDateLoopIndex = -1;
|
||||||
} else {
|
} else {
|
||||||
|
sessMgr.currentProfile.trueDate=sessMgr.currentProfile.depDate;
|
||||||
|
sessMgr.currentProfile.inLoop=true;
|
||||||
sessMgr.currentProfile.depDate = sessMgr.currentProfile.dateloop[currentDateLoopIndex];
|
sessMgr.currentProfile.depDate = sessMgr.currentProfile.dateloop[currentDateLoopIndex];
|
||||||
$("#date_loop_editor>span:eq(" + currentDateLoopIndex + ")").addClass("selected");
|
$("#date_loop_editor>span:eq(" + currentDateLoopIndex + ")").addClass("selected");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user