| 23783 |
ashik.ali |
1 |
$(function() {
|
|
|
2 |
$(".create-warehouse").live('click', function() {
|
|
|
3 |
loadCreateWarehouse("main-content");
|
|
|
4 |
});
|
|
|
5 |
|
|
|
6 |
$(".warehouses").live('click', function() {
|
|
|
7 |
loadWarehouses("main-content");
|
|
|
8 |
});
|
|
|
9 |
|
|
|
10 |
$("#warehouses-paginated .next").live('click', function() {
|
|
|
11 |
loadPaginatedNextItems('/getPaginatedWarehouses', null, 'warehouses-paginated', 'warehouses-table', null);
|
|
|
12 |
$(this).blur();
|
|
|
13 |
});
|
|
|
14 |
|
|
|
15 |
$("#warehouses-paginated .previous").live('click', function() {
|
|
|
16 |
loadPaginatedPreviousItems('/getPaginatedWarehouses', null, 'warehouses-paginated', 'warehouses-table', null);
|
|
|
17 |
$(this).blur();
|
|
|
18 |
});
|
|
|
19 |
});
|
|
|
20 |
|
|
|
21 |
function loadCreateWarehouse(domId){
|
|
|
22 |
doGetAjaxRequestHandler(context+"/createWarehouse", function(response){
|
|
|
23 |
$('#' + domId).html(response);
|
|
|
24 |
});
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
function loadWarehouses(domId){
|
|
|
28 |
doGetAjaxRequestHandler(context+"/getWarehouses", function(response){
|
|
|
29 |
$('#' + domId).html(response);
|
|
|
30 |
});
|
|
|
31 |
}
|
|
|
32 |
|