mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 06:36:27 +08:00
Update filter after toggling visibility (if neccesary)
This commit is contained in:
parent
fbc2be890c
commit
05be1e862f
1 changed files with 6 additions and 0 deletions
|
@ -1044,6 +1044,12 @@ function changeToEditMode() {
|
|||
column.visible(true);
|
||||
table.setColumnSearchable(column.index(), true);
|
||||
}
|
||||
|
||||
// Re-filter/search if neccesary
|
||||
var searchText = $('div.dataTables_filter input').val();
|
||||
if (!_.isEmpty(searchText)) {
|
||||
table.search(searchText).draw();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue