include search event as default value for select2

This commit is contained in:
CiTRO33 2019-12-19 22:41:30 +01:00
parent d88d010ce0
commit 4ec8789b73
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 ) {