Subversion Repositories SmartDukaan

Rev

Rev 27754 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27171 tejbeer 1
$(function() {
30522 tejbeer 2
	$(document).on('click', ".franchise-visit", function() {
27171 tejbeer 3
		loadFranchiseeVisit("main-content");
4
	});
30522 tejbeer 5
 
6
	$(document).on('click', ".show-franchisee-visit",
7
		function() {
8
 
9
			var authId = $("#authUserFilter").val();
10
			var yearMonth = $("#monthWise").val();
11
			doGetAjaxRequestHandler(context + "/getFranchiseVisit?authId="
12
				+ authId + "&yearMonth=" + yearMonth, function(response) {
13
					console.log(response)
14
					$('.franchiseVisitContainer').html(response);
15
 
16
				});
17
		});
18
 
19
 
20
 
21
	$(document).on('click', ".franchisee-detail",
22
		function() {
23
 
24
			var visitId = $(this).data('visitid');
25
 
26
 
27
			doGetAjaxRequestHandler(context + "/getFranchiseeActivity?visitId="
28
				+ visitId, function(response) {
29
 
30
					$('#franchisee-visit-detail .modal-content').html(response);
31
 
32
				});
33
		});
27171 tejbeer 34
});
35
 
36
function loadFranchiseeVisit(domId) {
30522 tejbeer 37
	doGetAjaxRequestHandler(context + "/franchiseVisit", function(response) {
27171 tejbeer 38
		$('#' + domId).html(response);
39
	});
40
}