Subversion Repositories SmartDukaan

Rev

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

Rev 26817 Rev 27754
Line 4... Line 4...
4
saleSearchObj.startTime = "";
4
saleSearchObj.startTime = "";
5
saleSearchObj.endTime = "";
5
saleSearchObj.endTime = "";
6
 
6
 
7
$(function() {
7
$(function() {
8
 
8
 
9
	$(".pending_fofo_order").live('click', function() {
9
	$(document).on('click', ".pending_fofo_order", function() {
10
		console.log("Helloo")
10
		console.log("Helloo")
11
		loadPendingOrder("main-content");
11
		loadPendingOrder("main-content");
12
	});
12
	});
13
 
13
 
14
	$("button.pendingOrderDetail").live(
14
	$("button.pendingOrderDetail").live(
Line 62... Line 62...
62
							return false;
62
							return false;
63
						}
63
						}
64
 
64
 
65
					});
65
					});
66
 
66
 
67
	$(".sale-history").live('click', function() {
67
	$(document).on('click', ".sale-history", function() {
68
		console.log("Sale History Button Clicked...")
68
		console.log("Sale History Button Clicked...")
69
		saleHistory("main-content", "", "", startDate, endDate);
69
		saleHistory("main-content", "", "", startDate, endDate);
70
	});
70
	});
71
 
71
 
72
	$(".insurance-policy-details").live('click', function() {
72
	$(document).on('click', ".insurance-policy-details", function() {
73
		console.log("insurance-policy-details");
73
		console.log("insurance-policy-details");
74
		insurancePolicyDetails("main-content");
74
		insurancePolicyDetails("main-content");
75
	});
75
	});
76
 
76
 
77
	$(".updatePaymentDetails")
77
	$(".updatePaymentDetails")
Line 204... Line 204...
204
						downloadInvoices(saleSearchObj.searchType,
204
						downloadInvoices(saleSearchObj.searchType,
205
								saleSearchObj.searchText,
205
								saleSearchObj.searchText,
206
								saleSearchObj.startTime, saleSearchObj.endTime);
206
								saleSearchObj.startTime, saleSearchObj.endTime);
207
					});
207
					});
208
 
208
 
209
	$(".search-order").live('click', function() {
209
	$(document).on('click', ".search-order", function() {
210
		console.log("search-order clicked")
210
		console.log("search-order clicked")
211
		loadSearchOrder("main-content");
211
		loadSearchOrder("main-content");
212
	});
212
	});
213
 
213
 
214
	$("#search-order-button").live(
214
	$("#search-order-button").live(
Line 264... Line 264...
264
				$(this).blur();
264
				$(this).blur();
265
			});
265
			});
266
 
266
 
267
	// grn-details
267
	// grn-details
268
 
268
 
269
	$(".sale-details").live('click', function() {
269
	$(document).on('click', ".sale-details", function() {
270
		orderId = $(this).attr('data');
270
		orderId = $(this).attr('data');
271
		console.log("orderId = " + orderId);
271
		console.log("orderId = " + orderId);
272
		loadSaleDetails(orderId, "sale-details-container");
272
		loadSaleDetails(orderId, "sale-details-container");
273
	});
273
	});
274
});
274
});