Subversion Repositories SmartDukaan

Rev

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

Rev 30185 Rev 30416
Line 4... Line 4...
4
	});
4
	});
5
 
5
 
6
	$(document).on('click', ".team-commitment", function() {
6
	$(document).on('click', ".team-commitment", function() {
7
		loadTeamCommitment("main-content");
7
		loadTeamCommitment("main-content");
8
	});
8
	});
-
 
9
	$(document).on('click', ".partner-health", function() {
-
 
10
		loadPartnerHealth("main-content");
9
 
11
	});
10
 
12
 
11
	$(document).on('click', ".submitDateWiseLead", function() {
13
	$(document).on('click', ".submitDateWiseLead", function() {
12
 
14
 
13
 
15
 
14
		var leadDate = $("#dateWiseLead").val();
16
		var leadDate = $("#dateWiseLead").val();
Line 350... Line 352...
350
 
352
 
351
		});
353
		});
352
 
354
 
353
 
355
 
354
 
356
 
355
	$(document).on('click', ".submitCommitment",
357
	$(document).on('click', ".show-partner-health",
356
		function() {
358
		function() {
357
 
359
 
358
			var startDateTime = $('input[name="commitmentDate"]').val();
360
			var email = $("#authUserFilter").val();
359
 
361
 
360
			console.log(startDateTime)
362
			console.log(email)
361
			doGetAjaxRequestHandler(context + "/getTeamCommitment?date="
363
			doGetAjaxRequestHandler(context + "/partnerHealth?email="
362
				+ startDate, function(response) {
364
				+ email, function(response) {
363
					console.log(response)
365
					console.log(response)
364
					$('.teamcommitmentcontainer').html(response);
366
					$('#' + 'main-content').html(response);
365
 
367
 
366
				});
368
				});
367
		});
369
		});
368
 
370
 
-
 
371
 
-
 
372
 
-
 
373
 
369
});
374
});
370
 
375
 
371
function loadLead(domId) {
376
function loadLead(domId) {
372
	doGetAjaxRequestHandler(context + "/getOpenLead", function(response) {
377
	doGetAjaxRequestHandler(context + "/getOpenLead", function(response) {
373
		$('#' + domId).html(response);
378
		$('#' + domId).html(response);
Line 410... Line 415...
410
		function(response) {
415
		function(response) {
411
			$('#' + domId).html(response);
416
			$('#' + domId).html(response);
412
		});
417
		});
413
}
418
}
414
 
419
 
-
 
420
function loadPartnerHealth(domId) {
-
 
421
	doGetAjaxRequestHandler(context + "/partnerHealth",
-
 
422
		function(response) {
-
 
423
			$('#' + domId).html(response);
-
 
424
		});
-
 
425
}
-
 
426
 
415
function loadSearchLead(domId, search_text) {
427
function loadSearchLead(domId, search_text) {
416
	doGetAjaxRequestHandler(context + "/searchLeads?searchTerm=" + search_text,
428
	doGetAjaxRequestHandler(context + "/searchLeads?searchTerm=" + search_text,
417
		function(response) {
429
		function(response) {
418
			$('#' + domId).html(response);
430
			$('#' + domId).html(response);
419
		});
431
		});