Skip to content
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

Show table header without THEAD - workaround #60

Open
msteudtn opened this issue Aug 20, 2018 · 0 comments
Open

Show table header without THEAD - workaround #60

msteudtn opened this issue Aug 20, 2018 · 0 comments

Comments

@msteudtn
Copy link

As written in the description and the FAQ, the filter looks for TBODY and THEAD.

If you can't change the HTML source-code and are stuck with simple TR and TD, you can use this dirty workaround to show the first table-line.

Add the following line: "tbody.find('tr:eq(0)').show().addClass(settings.visibleClass);" around line 240 so it looks like:

[...] 
// remove previous highlights
all_tds.removeClass(settings.highlightClass);
				
// dirty workaround
tbody.find('tr:eq(0)').show().addClass(settings.visibleClass);
	
// hide footer if the setting was specified
if (settings.hideTFootOnFilter) {
[...]

This is NOT a real issue.
We had this problem on an old Sharepoint-installation and I wanted to share our solution. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant