|
Lines 48-56
var dataTablesDefaults = {
Link Here
|
| 48 |
|
48 |
|
| 49 |
top2Start: ["info"], |
49 |
top2Start: ["info"], |
| 50 |
top2End: null, |
50 |
top2End: null, |
| 51 |
top: ["pageLength", "paging", "search", "buttons"], |
51 |
//top: [{div: {className: "top pager", features: ["pageLength", "paging"]}}, "search", "buttons"], |
| 52 |
topStart: null, |
52 |
topStart: { |
| 53 |
topEnd: null, |
53 |
className: "table_entries", |
|
|
54 |
features: ["pageLength", "paging"], |
| 55 |
}, |
| 56 |
topEnd: { |
| 57 |
className: "table_controls", |
| 58 |
features: ["search", "buttons"], |
| 59 |
}, |
| 54 |
|
60 |
|
| 55 |
bottomStart: ["info", "paging"], |
61 |
bottomStart: ["info", "paging"], |
| 56 |
bottomEnd: null, |
62 |
bottomEnd: null, |
|
Lines 90-95
var dataTablesDefaults = {
Link Here
|
| 90 |
state && |
96 |
state && |
| 91 |
state.search && |
97 |
state.search && |
| 92 |
toggledClearFilter(state.search.search, tableId); |
98 |
toggledClearFilter(state.search.search, tableId); |
|
|
99 |
|
| 100 |
// FIXME This it certainly a very bad idea... |
| 101 |
const $topStart = $(".table_entries"); |
| 102 |
const $topEnd = $(".table_controls"); |
| 103 |
|
| 104 |
const $wrapper = $('<div class="top pager" />'); |
| 105 |
$topStart.before($wrapper); |
| 106 |
$wrapper.append($topStart).append($topEnd); |
| 93 |
}, |
107 |
}, |
| 94 |
}; |
108 |
}; |
| 95 |
DataTable.defaults.column.orderSequence = ["asc", "desc"]; |
109 |
DataTable.defaults.column.orderSequence = ["asc", "desc"]; |
| 96 |
- |
|
|