Skip to content

Commit 4fe40c9

Browse files
Fix table search
1 parent 54783a1 commit 4fe40c9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

frontend/javascript/modules/table.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ export default class Table {
1717
// Just remove the search input from the DOM instead of disabling it
1818
this.domOptions = "lrtip";
1919
if (this.table.dataset.searchable === 'true') {
20-
this.domOptions = "ltrtip";
20+
this.domOptions = "lfrtip";
2121
}
2222

2323
this.render();
2424
}
2525

2626
render() {
2727
this.table = $(this.table).DataTable({ // eslint-disable-line new-cap
28-
sDom: this.domOptions,
28+
//dom: this.domOptions,
2929
lengthChange: this.lengthChangable,
3030
info: false,
3131
paging: this.paginated,

frontend/stylesheets/components/_datatables.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ div {
2323
margin-right: 15px;
2424
}
2525

26-
.row {
27-
:last-of-type {
28-
width: 100%;
29-
}
30-
}
31-
3226
.col-sm-7 {
3327
width: 100%;
3428
}

0 commit comments

Comments
 (0)