Update filter after toggling visibility (if neccesary)

This commit is contained in:
Luka Murn 2017-01-10 11:26:12 +01:00
parent fbc2be890c
commit 05be1e862f

View file

@ -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();
}
});
}