In colvis.js

In colvis.js

vishnupriyavishnupriya Posts: 1Questions: 0Answers: 0
edited January 2013 in Plug-ins
I am modifying the search filter on Enter Instead of key press.
when i add
$('#example_filter input').unbind();
$('#example_filter input').bind('keyup', function(e) {
if(e.keyCode == 13) {
oTable.fnFilter(this.value);
}
Only on Enter, the columns are searched. but the show/hide columns are also visible.

In colvis.js, the bind event is also called while giving enter in search filter:

$(nButton).bind( sEvent, function (e) {
that._fnCollectionShow();
e.preventDefault();
} );

return nButton;
},
This discussion has been closed.