Subversion Repositories SmartDukaan

Rev

Rev 27723 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27723 tejbeer 1
$(function() {
27754 amit.gupta 2
	$(document).on('click', ".inventory-listing", function() {
27723 tejbeer 3
		loadInventory("main-content");
4
	});
5
 
6
	$("#warehouse-wise-billing")
7
		.live(
8
			'click',
9
			function() {
10
				var warehouseId = $('#warehouseMap').val();
11
				doGetAjaxRequestHandler(context + "/inventory?warehouseIds=" + warehouseId,
12
					function(response) {
13
						$('#' + "main-content").html(response);
14
						console.log(response)
15
					});
16
			});
17
});
18
 
19
function loadInventory(domId) {
20
	doGetAjaxRequestHandler(context + "/inventory",
21
		function(response) {
22
			$('#' + domId).html(response);
23
 
24
		});
25
}