Subversion Repositories SmartDukaan

Rev

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

Rev 30599 Rev 31172
Line 11... Line 11...
11
		doGetAjaxRequestHandler(context + "/getHygieneData?fofoId=" + fofoId, function(response) {
11
		doGetAjaxRequestHandler(context + "/getHygieneData?fofoId=" + fofoId, function(response) {
12
			$('#' + "main-content").html(response);
12
			$('#' + "main-content").html(response);
13
		});
13
		});
14
	});
14
	});
15
 
15
 
-
 
16
 
-
 
17
	$(document).on('click', "#hygiene-date-search", function() {
-
 
18
		var fofoId = $('#partnerId').val();
-
 
19
		var date = getDatesFromPicker('input[name="hdate"]').startDate
-
 
20
 
-
 
21
		console.log(fofoId)
-
 
22
 
-
 
23
		if (fofoId == "") {
-
 
24
			doGetAjaxRequestHandler(context + "/getHygieneData?date=" + date, function(response) {
-
 
25
				$('#' + "main-content").html(response);
-
 
26
			});
-
 
27
		} else {
-
 
28
			doGetAjaxRequestHandler(context + "/getHygieneData?fofoId=" + fofoId + "&date=" + date, function(response) {
-
 
29
				$('#' + "main-content").html(response);
-
 
30
			});
-
 
31
		}
-
 
32
 
-
 
33
 
-
 
34
 
-
 
35
	});
-
 
36
 
-
 
37
 
16
	$(document).on('click', ".fetchDetail",
38
	$(document).on('click', ".fetchDetail",
17
		function() {
39
		function() {
18
 
40
 
19
			doGetAjaxRequestHandler(context + "/getFetchHygieneData",
41
			doGetAjaxRequestHandler(context + "/getFetchHygieneData",
20
				function(response) {
42
				function(response) {