8000 Update bootstrap-table.js · diegobdev/bootstrap-table@6a3dc7e · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a3dc7e

Browse files
committed
Update bootstrap-table.js
Added an option trimOnSearch, to make searching for multiple words easier
1 parent 51f57bb commit 6a3dc7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap-table.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
minimumCountColumns: 1,
157157
idField: undefined,
158158
cardView: false,
159+
trimOnSearch: true,
159160
clickToSelect: false,
160161
singleSelect: false,
161162
toolbar: undefined,
@@ -672,7 +673,7 @@
672673
var text = $.trim($(event.currentTarget).val());
673674

674675
// trim search input
675-
$(event.currentTarget).val(text);
676+
if(this.options.trimOnSearch) $(event.currentTarget).val(text);
676677

677678
if (text === this.searchText) {
678679
return;

0 commit comments

Comments
 (0)
0