Subversion Repositories SmartDukaan

Rev

Rev 27402 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27402 tejbeer 1
$(function() {
2
 
27754 amit.gupta 3
	$(document).on('click', ".map-info", function() {
27402 tejbeer 4
 
5
		loadMapInfo("main-content");
6
	});
7
 
27754 amit.gupta 8
	$(document).on('click', ".auth-tracking-detail", function() {
27402 tejbeer 9
 
10
 
11
		var emails = $('#authUser').val()
12
		var date = startDate
13
		console.log(emails)
14
		console.log(date);
15
		var url = "/map?emails=" + emails + "&date="
16
			+ startDate;
17
		doAjaxRequestHandler(context + url, "GET", function(response) {
18
			{ }
19
			console.log(response)
20
 
21
			$('.auth-user-map-info').html(response);
22
 
23
		});
24
 
25
 
26
	});
27
 
27754 amit.gupta 28
	$(document).on('change', "#authUser", function() {
27402 tejbeer 29
		console.log("hello");
30
		var values = $("#authUser").val();
31
		console.log(values);
32
	});
33
 
34
});
35
 
36
function loadMapInfo(domId) {
37
	doGetAjaxRequestHandler(context + "/authUserMapInfo", function(response) {
38
		$('#' + domId).html(response);
39
	});
40
}