Commit af06680b by NGO THI HONG

update pickup.js

parent aa7d976f
......@@ -7,6 +7,7 @@ var PICKUP = {};
PICKUP.newReportList;
PICKUP.continousWorkReport;
PICKUP.reportWithWarning;
PICKUP.pickupDefault = "newReport";
PICKUP.pickupActive = "newReport";
PICKUP.countNewReportList = 0;
......@@ -113,8 +114,8 @@ PICKUP.getReportWithWarningsListData = function (callback) {
*/
PICKUP.init = function() {
console.log("PICKUP.init");
TEMPLATE.loadHearder();
TEMPLATE.loadConfirmModal();
TEMPLATE.loadHearder("#includedHeader");
TEMPLATE.loadConfirmModal("#includedConfirmModal");
PICKUP.initSettingActivePickup();
PICKUP.settingPickup();
}
......@@ -148,6 +149,10 @@ PICKUP.settingPickup = function() {
*/
PICKUP.initSettingActivePickup = function() {
var urlParam = COMMON.getUrlParameter();
if(urlParam.pickupActive == undefined || urlParam.pickupActive == '' )
{
urlParam.pickupActive = PICKUP.pickupDefault;
}
PICKUP.pickupActive = urlParam.pickupActive;
PICKUP.settingActivePickup(PICKUP.pickupActive);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment