zeitlin / jquery-datatables-row-grouping

Automatically exported from code.google.com/p/jquery-datatables-row-grouping
0 stars 0 forks source link

Collapsable groups issue with non alphanumeric characters. #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Create a table and add non-alphanumeric characters to some of the groups.
2. Enable collapsible groups
3. Try to click on the group to collapse/expand, it wont work. 

jQuery selectors wont work on css classes which have non-alphanumeric 
characters in them.  I simply replaced line 121 with:

                return sGroup.toLowerCase().replace(/\W/g, "-");

So instead of replacing all white-space with a -, now all non-alphanumeric 
characters are replaced with a -.  This will ensure a valid CSS class that will 
allow jQuery to hide and show the TR's. 

Original issue reported on code.google.com by bmath...@gmail.com on 14 Sep 2011 at 6:58

GoogleCodeExporter commented 9 years ago

Original comment by joc...@gmail.com on 24 Sep 2011 at 6:18

GoogleCodeExporter commented 9 years ago
You are right - this issue is fixed in the latest version see 
http://jquery-datatables-row-grouping.googlecode.com/svn/trunk/issue7.html.

Thanks for your code.

Regards,
Jovan

Original comment by joc...@gmail.com on 24 Sep 2011 at 9:40