调整订单提交逻辑

This commit is contained in:
iFish 2014-09-15 20:46:06 +08:00
parent 6e53542051
commit 011d071046
2 changed files with 9 additions and 4 deletions

View File

@ -489,9 +489,14 @@ var CFG_MANGER = (function () {
if (newCookies) {
var oc = parseCookies(oldCookiesValue);
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));
}).join("; ");
}), function (v) { return v || false; }).join("; ");
if (!newHeaders["Cookie"]) {
delete newHeaders["Cookie"];
}
}
var headerCollection = [];
@ -1294,7 +1299,7 @@ window.cbl = function (u, h) {
if (idx > -1) {
ports.splice(idx, 1);
}
if (!checkPortTimer)
if (!checkPortTimer && ports.length === 0)
checkPortTimer = setTimeout(clearPortTimer, 30 * 60 * 1000);
};
var postMessageToPort = function (msg) {

View File

@ -137,7 +137,7 @@
dom.find("div>p:eq(0) span").html(data.msg);
resubmitBtn[0].disabled = false;
} else {
$("#ticket-submit-info .ticket-submit-vc span").click();
$("p.ticket-submit-vc input").val("")[0].focus();
}
//track