Subversion Repositories SmartDukaan

Rev

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

Rev 29640 Rev 30185
Line 1... Line 1...
1
$(function() {
1
$(function() {
2
	$(document).on('click', ".lead", function() {
2
	$(document).on('click', ".lead", function() {
3
		loadLead("main-content");
3
		loadLead("main-content");
4
	});
4
	});
5
 
5
 
-
 
6
	$(document).on('click', ".team-commitment", function() {
-
 
7
		loadTeamCommitment("main-content");
6
 
8
	});
7
 
9
 
8
 
10
 
9
	$(document).on('click', ".submitDateWiseLead", function() {
11
	$(document).on('click', ".submitDateWiseLead", function() {
10
 
12
 
11
 
13
 
Line 346... Line 348...
346
				});
348
				});
347
			}
349
			}
348
 
350
 
349
		});
351
		});
350
 
352
 
-
 
353
 
-
 
354
 
-
 
355
	$(document).on('click', ".submitCommitment",
-
 
356
		function() {
-
 
357
 
-
 
358
			var startDateTime = $('input[name="commitmentDate"]').val();
-
 
359
 
-
 
360
			console.log(startDateTime)
-
 
361
			doGetAjaxRequestHandler(context + "/getTeamCommitment?date="
-
 
362
				+ startDate, function(response) {
-
 
363
					console.log(response)
-
 
364
					$('.teamcommitmentcontainer').html(response);
-
 
365
 
-
 
366
				});
-
 
367
		});
-
 
368
 
351
});
369
});
352
 
370
 
353
function loadLead(domId) {
371
function loadLead(domId) {
354
	doGetAjaxRequestHandler(context + "/getOpenLead", function(response) {
372
	doGetAjaxRequestHandler(context + "/getOpenLead", function(response) {
355
		$('#' + domId).html(response);
373
		$('#' + domId).html(response);
Line 385... Line 403...
385
 
403
 
386
function loadLeadSearchInfo(search_text) {
404
function loadLeadSearchInfo(search_text) {
387
	loadSearchLead("main-content", search_text);
405
	loadSearchLead("main-content", search_text);
388
}
406
}
389
 
407
 
-
 
408
function loadTeamCommitment(domId) {
-
 
409
	doGetAjaxRequestHandler(context + "/teamCommitment",
-
 
410
		function(response) {
-
 
411
			$('#' + domId).html(response);
-
 
412
		});
-
 
413
}
-
 
414
 
390
function loadSearchLead(domId, search_text) {
415
function loadSearchLead(domId, search_text) {
391
	doGetAjaxRequestHandler(context + "/searchLeads?searchTerm=" + search_text,
416
	doGetAjaxRequestHandler(context + "/searchLeads?searchTerm=" + search_text,
392
		function(response) {
417
		function(response) {
393
			$('#' + domId).html(response);
418
			$('#' + domId).html(response);
394
		});
419
		});