Subversion Repositories SmartDukaan

Rev

Rev 27754 | 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()
30599 amit.gupta 12
		var mapTime = getDatesFromPicker('input[name="mapTime"]').startDate;
27402 tejbeer 13
		console.log(emails)
14
		console.log(date);
30599 amit.gupta 15
		var url = "/map?emails=" + emails + "&date=" + mapTime;
27402 tejbeer 16
		doAjaxRequestHandler(context + url, "GET", function(response) {
17
			$('.auth-user-map-info').html(response);
18
		});
19
 
20
 
21
	});
22
 
27754 amit.gupta 23
	$(document).on('change', "#authUser", function() {
27402 tejbeer 24
		console.log("hello");
25
		var values = $("#authUser").val();
26
		console.log(values);
27
	});
28
 
29
});
30
 
31
function loadMapInfo(domId) {
32
	doGetAjaxRequestHandler(context + "/authUserMapInfo", function(response) {
33
		$('#' + domId).html(response);
34
	});
35
}