I apparently have no CoffeeScript-fu.
I've got a Rails 4.1 app with jquery-datatables-rails and everything works perfectly.
However, I would like to hide a class any time the datatable is ordered OR searched (I'd be happy if I could figure out one or the other.) I'm not having much luck making this happen. I cannot figure out how to capture events from the datatable.
I see a great example in plain Javascript here, but can't make it happen in CoffeeScript.
Can someone give me a kick in the right direction?
Here's my existing CoffeeScript, which disables the initial sort and disallows sorting on certain columns (which is what I want.)
jQuery ->
$('#customers').dataTable(
"sPaginationType": "bootstrap"
"aaSorting": []
"aoColumnDefs": [{
"bSortable": false,
"aTargets": ['nosort']
}]
)
Thank you in advance!