mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: Fix select2 issue. Closes #1497
This commit is contained in:
parent
6a01ca0bea
commit
b5b780c25d
@ -70,7 +70,7 @@
|
||||
if (arry) {
|
||||
v = v.split('\u0000');
|
||||
}
|
||||
if (!ts.isEmptyObject($input.find('.select2').data())) {
|
||||
if (!ts.isEmptyObject($cell.find('.select2').data())) {
|
||||
$input
|
||||
// add regex, so we filter exact numbers
|
||||
.val(
|
||||
@ -78,8 +78,8 @@
|
||||
'/(' + matchPrefix + (v || []).join(matchSuffix + '|' + matchPrefix) + matchSuffix + ')/' + flags :
|
||||
''
|
||||
)
|
||||
.trigger('search').end()
|
||||
.find('.select2').select2('val', v);
|
||||
.trigger('search');
|
||||
$cell.find('.select2').select2('val', v);
|
||||
// update sticky header cell
|
||||
if (c.widgetOptions.$sticky) {
|
||||
c.widgetOptions.$sticky.find('.select2col' + indx + ' .select2').select2('val', v);
|
||||
|
Loading…
Reference in New Issue
Block a user