Subversion Repositories SmartDukaan

Rev

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

Rev 26721 Rev 26817
Line 9... Line 9...
9
	$(".pending_fofo_order").live('click', function() {
9
	$(".pending_fofo_order").live('click', function() {
10
		console.log("Helloo")
10
		console.log("Helloo")
11
		loadPendingOrder("main-content");
11
		loadPendingOrder("main-content");
12
	});
12
	});
13
 
13
 
14
	$(".pendingOrderDetail").live(
14
	$("button.pendingOrderDetail").live(
15
			'click',
15
			'click',
16
			function() {
16
			function() {
17
				var orderId = $(this).data('orderid');
-
 
18
				console.log(orderId);
-
 
19
 
-
 
20
				var customerObj = {};
-
 
21
				var pendingOrder = {};
-
 
22
				pendingOrder['pendingOrderId'] = orderId;
-
 
23
				localStorage.setItem("pendingOrderId", JSON
-
 
24
						.stringify(pendingOrder));
-
 
25
				var currentRow = $(this).closest("tr");
-
 
26
				customerObj['firstName'] = currentRow.find("td:eq(1)").text();
-
 
27
				customerObj['lastName'] = currentRow.find("td:eq(2)").text();
-
 
28
				customerObj['mobileNumber'] = currentRow.find("td:eq(3)")
-
 
29
						.text();
-
 
30
				customerObj['emailId'] = $(this).data('emailid');
-
 
31
				customerObj['gstNumber'] = $(this).data('gst');
-
 
32
				// customerObj['dateOfBirth'] = startDate;
-
 
33
				var customerAddress = {};
-
 
34
				customerAddress['name'] = currentRow.find("td:eq(1)").text()
-
 
35
						+ " " + currentRow.find("td:eq(2)").text();
-
 
36
				customerAddress['line1'] = $(this).data('line1');
-
 
37
				customerAddress['line2'] = $(this).data('line2');
-
 
38
				customerAddress['city'] = $(this).data('city');
-
 
39
				customerAddress['state'] = $(this).data('state');
-
 
40
				customerAddress['pinCode'] = $(this).data('pincode');
-
 
41
				customerAddress['phoneNumber'] = currentRow.find("td:eq(3)")
-
 
42
						.text();
-
 
43
				customerObj['address'] = customerAddress;
-
 
44
 
-
 
45
				console.log(customerObj);
-
 
46
				localStorage.setItem("customerDetails", JSON
-
 
47
						.stringify(customerObj));
-
 
48
 
-
 
49
				doGetAjaxRequestHandler(context
17
				doGetAjaxRequestHandler(context
50
						+ "/getPendingOrderItem?orderId=" + orderId, function(
18
						+ "/getPendingOrderItem?orderId=" + $(this).data('orderid'), function(
51
						response) {
19
						response) {
52
					$('.pending-order-container').html(response);
20
					$('.pending-order-container').html(response);
53
				});
21
				});
54
			});
22
			});
55
 
23