include search event als default to use select2

This commit is contained in:
CiTRO33 2019-12-19 22:38:39 +01:00
parent 7d58c8de18
commit 5a98bf94f2
2 changed files with 2 additions and 2 deletions

View File

@ -3538,7 +3538,7 @@ $('table').trigger('search', false);</pre></div>
<ul>
<li>Possible values to use as parameter
<ul>
<li>Boolean <code>false</code> Default same as <code>['blur', 13]</code></li>
<li>Boolean <code>false</code> Default same as <code>['blur', 'search', 13]</code></li>
<li>String <code>search change keypress input blur</code> Events</li>
<li>Number Keycodes 13 = Enter, 9 = Tab, etc. see <code>$.tablesorter.keyCodes</code> for internal constants</li>
<li>Object <code>{keycode: Number, ctrl : boolean, alt : boolean, shift : boolean}</code></li>

View File

@ -922,7 +922,7 @@
liveSearch = typeof wo.filter_liveSearch === 'boolean' ?
wo.filter_liveSearch :
ts.getColumnData( table, wo.filter_liveSearch, column ),
searchTrigger = wo.filter_searchTrigger === false ? ['blur' , tskeyCodes.enter ] : wo.filter_searchTrigger,
searchTrigger = wo.filter_searchTrigger === false ? ['blur' , 'search', tskeyCodes.enter ] : wo.filter_searchTrigger,
triggerSearch = false;
if ( table.config.widgetOptions.filter_initialized ) {