Subversion Repositories SmartDukaan

Rev

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

Rev 27754 Rev 27755
Line 159... Line 159...
159
 
159
 
160
	$(document).on('click', ".bad_inventory", function() {
160
	$(document).on('click', ".bad_inventory", function() {
161
		loadBadInventory("main-content", "");
161
		loadBadInventory("main-content", "");
162
	});
162
	});
163
 
163
 
164
	$("#good-inventory-paginated .next").live(
164
	$(document).on('click', "#good-inventory-paginated .next",
165
		'click',
-
 
166
		function() {
165
		function() {
167
			var searchText = $("#good-inventory-search-text").val();
166
			var searchText = $("#good-inventory-search-text").val();
168
			if (typeof (searchText) == "undefined" || !searchText) {
167
			if (typeof (searchText) == "undefined" || !searchText) {
169
				searchText = "";
168
				searchText = "";
170
 
169
 
Line 175... Line 174...
175
				params, 'good-inventory-paginated',
174
				params, 'good-inventory-paginated',
176
				'good-inventory-table', null);
175
				'good-inventory-table', null);
177
			$(this).blur();
176
			$(this).blur();
178
		});
177
		});
179
 
178
 
180
	$("#good-inventory-paginated .previous").live(
179
	$(document).on('click', "#good-inventory-paginated .previous",
181
		'click',
-
 
182
		function() {
180
		function() {
183
			var searchText = $("#good-inventory-search-text").val();
181
			var searchText = $("#good-inventory-search-text").val();
184
			if (typeof (searchText) == "undefined" || !searchText) {
182
			if (typeof (searchText) == "undefined" || !searchText) {
185
				searchText = "";
183
				searchText = "";
186
			}
184
			}
Line 206... Line 204...
206
		if (keyCode == 13) {
204
		if (keyCode == 13) {
207
			$("#good-inventory-search-button").click();
205
			$("#good-inventory-search-button").click();
208
		}
206
		}
209
	});
207
	});
210
 
208
 
211
	$("#catalog-paginated .next").live(
209
	$(document).on('click', "#catalog-paginated .next",
212
		'click',
-
 
213
		function() {
210
		function() {
214
			var searchText = $("#catalog-search-text").val();
211
			var searchText = $("#catalog-search-text").val();
215
			if (typeof (searchText) == "undefined" || !searchText) {
212
			if (typeof (searchText) == "undefined" || !searchText) {
216
				searchText = "";
213
				searchText = "";
217
			}
214
			}
Line 239... Line 236...
239
			loadPaginatedCatalogNextItems('/getPaginatedCatalog', params,
236
			loadPaginatedCatalogNextItems('/getPaginatedCatalog', params,
240
				'catalog-paginated', 'catalog-table', null);
237
				'catalog-paginated', 'catalog-table', null);
241
			$(this).blur();
238
			$(this).blur();
242
		});
239
		});
243
 
240
 
244
	$("#catalog-paginated .previous").live(
241
	$(document).on('click', "#catalog-paginated .previous", function() {
245
		'click', function() {
-
 
246
			var searchText = $("#catalog-search-text").val();
242
			var searchText = $("#catalog-search-text").val();
247
			if (typeof (searchText) == "undefined" || !searchText) {
243
			if (typeof (searchText) == "undefined" || !searchText) {
248
				searchText = "";
244
				searchText = "";
249
			}
245
			}
250
			var searchItem = $("#catalog-search-text-compare").val();
246
			var searchItem = $("#catalog-search-text-compare").val();
Line 284... Line 280...
284
		if (keyCode == 13) {
280
		if (keyCode == 13) {
285
			$("#catalog-search-button").click();
281
			$("#catalog-search-button").click();
286
		}
282
		}
287
	});
283
	});
288
 
284
 
289
	$(".cancellation").live(
285
	$(document).on("click", ".cancellation",
290
		"click",
-
 
291
		function(e) {
286
		function(e) {
292
			orderid = $(this).data('orderid');
287
			orderid = $(this).data('orderid');
293
			itemId = $(this).data('itemid');
288
			itemId = $(this).data('itemid');
294
 
289
 
295
			doGetAjaxRequestHandler(context
290
			doGetAjaxRequestHandler(context
Line 315... Line 310...
315
 
310
 
316
	$(".mk_button").on("click", function() {
311
	$(".mk_button").on("click", function() {
317
 
312
 
318
	});
313
	});
319
 
314
 
320
	$(".closeOrder")
315
	$(document).on("click", ".closeOrder",
321
		.live(
-
 
322
			"click",
-
 
323
			function(e) {
316
			function(e) {
324
				orderid = $(this).data('orderid');
317
				orderid = $(this).data('orderid');
325
				if (confirm("Are you sure you want to close the order") == true) {
318
				if (confirm("Are you sure you want to close the order") == true) {
326
 
319
 
327
					doPostAjaxRequestHandler(context
320
					doPostAjaxRequestHandler(context
Line 369... Line 362...
369
		} else {
362
		} else {
370
			$('#textnotifymessage').hide();
363
			$('#textnotifymessage').hide();
371
		}
364
		}
372
	});
365
	});
373
 
366
 
374
	$(".notify-cancel-order-submit")
367
	$(document).on("click", ".notify-cancel-order-submit",
375
		.live(
-
 
376
			"click",
-
 
377
			function(e) {
368
			function(e) {
378
				var jsonObject = {};
369
				var jsonObject = {};
379
				var orderAndItemIdsJson = [];
370
				var orderAndItemIdsJson = [];
380
				var orderAndItemIds;
371
				var orderAndItemIds;
381
				var orderIds;
372
				var orderIds;
Line 441... Line 432...
441
								}
432
								}
442
							});
433
							});
443
				}
434
				}
444
 
435
 
445
			});
436
			});
446
	$(".notify-submit")
437
	$(document).on("click", ".notify-submit",
447
		.live(
-
 
448
			"click",
-
 
449
			function(e) {
438
			function(e) {
450
 
439
 
451
				var jsonObject = {};
440
				var jsonObject = {};
452
				var orderIdsJSon = [];
441
				var orderIdsJSon = [];
453
				var ItemIdsJson = [];
442
				var ItemIdsJson = [];
Line 567... Line 556...
567
							});
556
							});
568
				}
557
				}
569
 
558
 
570
			});
559
			});
571
 
560
 
572
	$(".change-notify-request")
561
	$(document).on("click", ".change-notify-request",
573
		.live(
-
 
574
			"click",
-
 
575
			function(e) {
562
			function(e) {
576
 
563
 
577
				var jsonObject = {};
564
				var jsonObject = {};
578
				var orderIdsJSon = [];
565
				var orderIdsJSon = [];
579
				var orderIds;
566
				var orderIds;