调整订单提交逻辑
This commit is contained in:
parent
6e53542051
commit
011d071046
@ -489,9 +489,14 @@ var CFG_MANGER = (function () {
|
|||||||
if (newCookies) {
|
if (newCookies) {
|
||||||
var oc = parseCookies(oldCookiesValue);
|
var oc = parseCookies(oldCookiesValue);
|
||||||
newCookies = _.extend({}, oc, newCookies);
|
newCookies = _.extend({}, oc, newCookies);
|
||||||
newHeaders["Cookie"] = _.map(newCookies, function (v, k) {
|
newHeaders["Cookie"] = _.filter(_.map(newCookies, function (v, k) {
|
||||||
|
if (!v)
|
||||||
|
return "";
|
||||||
return k + "=" + encodeURIComponent((v));
|
return k + "=" + encodeURIComponent((v));
|
||||||
}).join("; ");
|
}), function (v) { return v || false; }).join("; ");
|
||||||
|
if (!newHeaders["Cookie"]) {
|
||||||
|
delete newHeaders["Cookie"];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var headerCollection = [];
|
var headerCollection = [];
|
||||||
@ -1294,7 +1299,7 @@ window.cbl = function (u, h) {
|
|||||||
if (idx > -1) {
|
if (idx > -1) {
|
||||||
ports.splice(idx, 1);
|
ports.splice(idx, 1);
|
||||||
}
|
}
|
||||||
if (!checkPortTimer)
|
if (!checkPortTimer && ports.length === 0)
|
||||||
checkPortTimer = setTimeout(clearPortTimer, 30 * 60 * 1000);
|
checkPortTimer = setTimeout(clearPortTimer, 30 * 60 * 1000);
|
||||||
};
|
};
|
||||||
var postMessageToPort = function (msg) {
|
var postMessageToPort = function (msg) {
|
||||||
|
@ -137,7 +137,7 @@
|
|||||||
dom.find("div>p:eq(0) span").html(data.msg);
|
dom.find("div>p:eq(0) span").html(data.msg);
|
||||||
resubmitBtn[0].disabled = false;
|
resubmitBtn[0].disabled = false;
|
||||||
} else {
|
} else {
|
||||||
$("#ticket-submit-info .ticket-submit-vc span").click();
|
$("p.ticket-submit-vc input").val("")[0].focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
//track
|
//track
|
||||||
|
Loading…
Reference in New Issue
Block a user