Show page and total records number on DataTables tables

This commit is contained in:
Oliver Gorwits
2015-03-07 11:54:31 +00:00
parent 179ae2553f
commit f7bc66ff54
2 changed files with 19 additions and 12 deletions

View File

@@ -1,9 +1,13 @@
2.031013_001 - 2015-03-02
2.032000 - 2015-03-02
[NEW FEATURES]
* macsuck_unsupported setting to allow node gathering on delinquent switches
[ENHANCEMENTS]
* Show page and total records number on DataTables tables
[BUG FIXES]
* Only exclude discover_no on Undiscovered Neighbors report when few (<50) results

View File

@@ -1,15 +1,18 @@
"processing": true,
"stateSave": true,
"pageLength": [% settings.table_pagesize %],
"lengthMenu": [% table_showrecordsmenu %],
"dom": '<"top"l<"nd_datatables-pager"p>f>rt<"bottom"><"clear">',
"language": {
"search": '_INPUT_',
"searchPlaceholder": 'Filter records...',
"lengthMenu": "Show _MENU_ records."
},
"stateSaveParams": function (settings, data) {
"processing": true
,"stateSave": true
,"pageLength": [% settings.table_pagesize %]
,"lengthMenu": [% table_showrecordsmenu %]
,"dom": '<"top"l<"nd_datatables-pager"p>f>rit<"bottom"><"clear">'
,"language": {
"search": '_INPUT_'
,"searchPlaceholder": 'Filter records...'
,"lengthMenu": "Show _MENU_ records."
,"info": "&nbsp;Showing _START_ to _END_ of _TOTAL_"
,"infoFiltered": "(filtered from _MAX_ total)"
,"infoEmpty": "&nbsp;No matching entries"
}
,"stateSaveParams": function (settings, data) {
// make sure filter is never saved
data.search.search = "";
// make sure paging position is not saved