Instead of duplicating a lot of code with xmlsitemap.xsl.js, we should convert it to use jQuery code. It will be easier to maintain as well.
Instead of duplicating a lot of code with xmlsitemap.xsl.js, we should convert it to use jQuery code. It will be easier to maintain as well.
Comments
Comment #1
dave reidCan possibly even re-use the tablesort.js code as well.
EDIT: There is no jQuery tablesort JS included with core, so this would require http://tablesorter.com/docs/
Comment #2
dave reidSuccess! Converted to using jQuery and the tablesort plugin. Brings our custom XSL JS code from 149 lines to 15. Much, much more maintainable and integrated with Drupal. Committed to both 7.x-2.x and 6.x-2.x branches:
http://drupal.org/cvs?commit=305606
http://drupal.org/cvs?commit=305608
Comment #3
dave reidHuge thank you to Christian for writing http://tablesorter.com/docs/. It truly rocks this situation for XML sitemap.