Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23783 ashik.ali 1
$(function() {
2
	$(".create-vendor").live('click', function() {
3
		loadCreateVendor("main-content");
4
	});
5
 
6
	$(".vendors").live('click', function() {
7
		loadVendors("main-content");
8
	});
9
 
10
	$("#vendors-paginated .next").live('click', function() {
11
		loadPaginatedNextItems('/getPaginatedVendors', null, 'vendors-paginated', 'vendors-table', null);
12
		$(this).blur();
13
    });
14
 
15
	$("#vendors-paginated .previous").live('click', function() {
16
		loadPaginatedPreviousItems('/getPaginatedVendors', null, 'vendors-paginated', 'vendors-table', null);
17
		$(this).blur();
18
    });
19
});
20
 
21
function loadCreateVendor(domId){
22
	doGetAjaxRequestHandler(context+"/createVendor", function(response){
23
		$('#' + domId).html(response);
24
	});
25
}
26
 
27
function loadVendors(domId){
28
	doGetAjaxRequestHandler(context+"/getVendors", function(response){
29
		$('#' + domId).html(response);
30
	});
31
}
32