Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
27723 tejbeer 1
$(function() {
2
	$(".inventory-listing").live('click', function() {
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
}