Subversion Repositories SmartDukaan

Rev

Rev 24465 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24465 tejbeer 1
$(function() {
27754 amit.gupta 2
	$(document).on('click', ".live_demo_billing", function() {
24465 tejbeer 3
		currentFofoId = 0;
4
		loaddemolist("main-content");
5
	});
6
 
27754 amit.gupta 7
	$(document).on('click', ".live_demo",
24465 tejbeer 8
			 function(){
9
 
10
		loaddemolist("main-content");
11
	});
12
 
27754 amit.gupta 13
	 $(document).on('click', ".approve-billing",
24465 tejbeer 14
			 function(){
15
			 if (confirm("Are you sure you want to Approve the billing") == true) {
16
			 serial =$(this).data("serial"); 
17
			 doPostAjaxRequestHandler(context + "/enableliveDemoSerailNumber?serial_number="+serial,function(response) {
18
					if (response == 'true') {
19
					    alert("successfully Approved");
20
					    loaddemolist("main-content");
21
			 }
22
			 });
23
			 }
24
			 });
25
 
26
 
27
});
28
 
29
 
30
	function loaddemolist(domId){
31
	     console.log(currentFofoId)
32
		var url = "/getDemolistbyfofoId?fofoId=" + currentFofoId;
33
		doAjaxRequestHandler(context + url, "GET", function(response) {
34
			$('#' + domId).html(response);
35
		});
36
	}