[Web] Set default pagination size to 20
parent
eb064a530e
commit
c2f74ab75c
|
@ -100,7 +100,7 @@ $MAILCOW_APPS = array(
|
|||
);
|
||||
|
||||
// Rows until pagination begins
|
||||
$PAGINATION_SIZE = 1;
|
||||
$PAGINATION_SIZE = 20;
|
||||
|
||||
// Default number of rows/lines to display (log table)
|
||||
$LOG_LINES = 100;
|
||||
|
|
|
@ -38,7 +38,14 @@ jQuery(function($){
|
|||
"paging": {"enabled": true,"limit": 5,"size": pagination_size},
|
||||
"sorting": {"enabled": true},
|
||||
"on": {
|
||||
"ready.ft.table": function(ev, ft){
|
||||
"ready.ft.table": btn_group_quarantaine,
|
||||
"after.ft.paging": btn_group_quarantaine
|
||||
},
|
||||
"filtering": {"enabled": true,"position": "left","connectors": false,"placeholder": lang.filter_table},
|
||||
});
|
||||
}
|
||||
|
||||
btn_group_quarantaine = function(ev, ft){
|
||||
$('.show_qid_info').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
var qitem = $(this).data('item');
|
||||
|
@ -71,11 +78,6 @@ jQuery(function($){
|
|||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
"filtering": {"enabled": true,"position": "left","connectors": false,"placeholder": lang.filter_table},
|
||||
});
|
||||
}
|
||||
|
||||
// Initial table drawings
|
||||
draw_quarantaine_table();
|
||||
|
||||
|
|
Loading…
Reference in New Issue