Skip to content

Commit

Permalink
possible solution to #744
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweissman committed Jul 15, 2017
1 parent 825185c commit 81bf822
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/sprinkles/core/assets/userfrosting/js/uf-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,12 @@
var columnName = column.data('column-name');
if (data.listable[columnName]) {
$.tablesorter.filter.buildSelect(ts, i, data.listable[columnName], true);
var filters = base.getSavedFilters(ts);
// If there is a filter actually set for this column, update the selected option.
if (filters[i]) {
var selectControl = $(ts).find(".tablesorter-filter[data-column='" + i + "']");
selectControl.val(filters[i]);
}
}
}
}
Expand Down

0 comments on commit 81bf822

Please sign in to comment.