Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
24465 tejbeer 1
$(function() {
2
	$(".live_demo_billing").live('click', function() {
3
		currentFofoId = 0;
4
		loaddemolist("main-content");
5
	});
6
 
7
	$(".live_demo").live('click',
8
			 function(){
9
 
10
		loaddemolist("main-content");
11
	});
12
 
13
	 $(".approve-billing").live('click',
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
	}