Skip to content

Commit

Permalink
Update select2-filter extension
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Dec 13, 2017
1 parent 7056efa commit 7733c32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 249 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@
if (that.options.sidePagination === 'client') {
this.data = $.grep(this.data, function (row, idx) {
for (var field in filterValues) {
var column = that.columns[$.fn.bootstrapTable.utils.getFieldIndex(that.columns, field)],
var column = that.columns[that.fieldsColumnsIndex[field]],
filterValue = filterValues[field].toLowerCase(),
rowValue = row[field];

rowValue = $.fn.bootstrapTable.utils.calculateObjectValue(
that.header,
that.header.formatters[$.inArray(field, that.header.fields)], [rowValue, row, idx], rowValue);
Expand Down
128 changes: 0 additions & 128 deletions src/extensions/select2-filter/data.json

This file was deleted.

119 changes: 0 additions & 119 deletions src/extensions/select2-filter/select2-filter.html

This file was deleted.

0 comments on commit 7733c32

Please sign in to comment.