-
Notifications
You must be signed in to change notification settings - Fork 755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong number of filter inputs #2
Comments
Hmm, the I'd still like to know why there's a difference and the question that comes to mind is about the third tab table. Could you look at it with Firebug or its equivalent and see what the headerList contains? Enter this in the console to get the information:
It might contain a clue as to why there is an extra header listed, or not. The bug could very well be in the widget that I haven't encountered a test case for - I did put together the widget rather quickly and without extensive testing. Thanks for the report! |
Yes, there is old header from table with bigger column number at end of list (b.t.w. when i select ui tab 1 after tab 2 there is extra filter input too).
Don't know how it affects on other code but filter works fine for me) Is this good way? |
Ok, I just updated the plugin to v2.0.19 with your suggestion. Please check it and see if it fixes the problem. Thanks again! |
All works good with v2.0.19, thanks. You can delete this issue now. I have also done some modification in filter widget for me to hide filter inputs by options like so i can use this to hide input and disable sort on 6 column in table:) if you interested in it, replace line 99 in widgets to:
|
Hey Jizo! Thanks again... I've updated the plugin to 2.0.20 and included the ability to use "filter-false" class name in the header to disable the filter :) Thanks again, you Rock! |
I have jquery ui tabs loaded via ajax. Each tab has tables with unique ID and tablesorter on them (with zebra and filter widgets).
When I click tabs one by one, tablesorter adds wrong number of filter inputs to tables:
(1st ut tab)
table with 2 columns
(2nd ut tab)
table with 3 columns
(3rd ut tab)
table with 2 columns - there i have 3 filter inputs
i think this bug in tablesorter becouse filter gets number of columns from it (that have not been updated from last tab)
my solution was changing line
cols = c.headerList.length,
to
cols = $("thead th", table).length,
in filter widget. It works but i dont think that good way to fix this. Check please)
The text was updated successfully, but these errors were encountered: