Subversion Repositories SmartDukaan

Rev

Rev 35502 | Rev 35771 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35502 Rev 35505
Line 65... Line 65...
65
			$('#' + domId).html(response);
65
			$('#' + domId).html(response);
66
		});
66
		});
67
}
67
}
68
 
68
 
69
$(document).on('click', ".today-offer", function () {
69
$(document).on('click', ".today-offer", function () {
70
    let fofoId = $(this).data('fofoid');
-
 
71
    loadTodayOfferVM("main-content", fofoId);
70
	loadTodayOfferVM("main-content");
72
});
71
});
73
 
72
 
74
// Main function called to load the shell
73
// Main function called to load the shell
75
function loadTodayOfferVM(domId, fofoId) {
74
function loadTodayOfferVM(domId) {
76
    doGetAjaxRequestHandler(context + `/todayOffer?fofoId=${fofoId}`, function (response) {
75
	doGetAjaxRequestHandler(context + `/todayOffer`, function (response) {
77
        // Load the brand tabs
76
        // Load the brand tabs
78
        $('#' + domId).html(response);
77
        $('#' + domId).html(response);
79
 
78
 
80
        // AUTO-LOAD Samsung immediately after tabs are ready
79
        // AUTO-LOAD Samsung immediately after tabs are ready
81
        loadBrandOffers("Motorola", fofoId);
80
		loadBrandOffers("Motorola", 0);
82
    });
81
    });
83
}
82
}
84
 
83
 
85
 
84
 
86
// Click listener for tabs
85
// Click listener for tabs