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] [NEW FEATURES]
* macsuck_unsupported setting to allow node gathering on delinquent switches * macsuck_unsupported setting to allow node gathering on delinquent switches
[ENHANCEMENTS]
* Show page and total records number on DataTables tables
[BUG FIXES] [BUG FIXES]
* Only exclude discover_no on Undiscovered Neighbors report when few (<50) results * Only exclude discover_no on Undiscovered Neighbors report when few (<50) results

View File

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