You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've attempted to implement tablesorter on a table which contains graph buttons as well as column headers, like in this fragment (generated using php with various variables populating the javascript code):
I need to prevent the table from sorting when you click the image link (with classname hdr_icon). I've tried using return false, and jQuery's event.stopPropagation() to stop the click from activating the sort, but to no avail.
I would also prefer the text of 'Date' to fire the sort, rather than the header cell itself.
I'm working with a system that generates much inline Javascript, so the onclick is required for the time being. Is there any way of configuring this plugin to allow for such cases? Having trawled the net, I've not been successful in finding a similar case study.
Thanks in anticipation - it's otherwise a great plugin, easy to implement.
The text was updated successfully, but these errors were encountered:
Hmm, yeah there isn't an easy way for you to tell the plugin what to click on... I'll work on something in the version 2.4 release. What I think I'll do is add a new selector to indicate what in the header is clicked to trigger a sort.
At first I was thinking about changing the way the selectorHeaders option worked, but maybe just a new option would be better.
Hi there,
I've attempted to implement tablesorter on a table which contains graph buttons as well as column headers, like in this fragment (generated using php with various variables populating the javascript code):
I need to prevent the table from sorting when you click the image link (with classname hdr_icon). I've tried using return false, and jQuery's event.stopPropagation() to stop the click from activating the sort, but to no avail.
I would also prefer the text of 'Date' to fire the sort, rather than the header cell itself.
I'm working with a system that generates much inline Javascript, so the onclick is required for the time being. Is there any way of configuring this plugin to allow for such cases? Having trawled the net, I've not been successful in finding a similar case study.
Thanks in anticipation - it's otherwise a great plugin, easy to implement.
The text was updated successfully, but these errors were encountered: