Subversion Repositories SmartDukaan

Rev

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

Rev 24221 Rev 24658
Line 5... Line 5...
5
	
5
	
6
	$(".catalog").live('click', function() {
6
	$(".catalog").live('click', function() {
7
		loadCatalog("main-content","");
7
		loadCatalog("main-content","");
8
	});
8
	});
9
	
9
	
-
 
10
	$(".review_order").live('click', function() {
-
 
11
		loadOrder("main-content");
-
 
12
	});
-
 
13
	
10
	$(".item_aging").live('click', function() {
14
	$(".item_aging").live('click', function() {
11
		getInventoryItemAgingByInterval("main-content", "");
15
		getInventoryItemAgingByInterval("main-content", "");
12
	});
16
	});
13
	
17
	
14
	$("#item-aging-search-button").live('click', function() {
18
	$("#item-aging-search-button").live('click', function() {
Line 144... Line 148...
144
 
148
 
145
function loadCatalog(domId, search_text){
149
function loadCatalog(domId, search_text){
146
	doGetAjaxRequestHandler(context+"/getCatalog?searchTerm="+search_text, function(response){
150
	doGetAjaxRequestHandler(context+"/getCatalog?searchTerm="+search_text, function(response){
147
		$('#' + domId).html(response);
151
		$('#' + domId).html(response);
148
	});
152
	});
-
 
153
	
-
 
154
	
-
 
155
}
-
 
156
 
-
 
157
 
-
 
158
function loadOrder(domId){
-
 
159
	doGetAjaxRequestHandler(context+"/getCurrentOrder", function(response){
-
 
160
		$('#' + domId).html(response);
-
 
161
	});
-
 
162
	
-
 
163
	
149
}
164
}
150
 
165
 
151
function getInventoryItemAgingByInterval(domId, searchContent){
166
function getInventoryItemAgingByInterval(domId, searchContent){
152
	doPostAjaxRequestWithJsonHandler(context+"/getInventoryItemAgingByInterval?searchContent="+searchContent, JSON.stringify([5,15,30,45]), function(response){
167
	doPostAjaxRequestWithJsonHandler(context+"/getInventoryItemAgingByInterval?searchContent="+searchContent, JSON.stringify([5,15,30,45]), function(response){
153
		$('#' + domId).html(response);
168
		$('#' + domId).html(response);