standardistaTableSortingInit() causes expansion of header
Brought to you by:
workingwithme
1) Thanks for this script, works wonderfully and is easy to use.
2) When I call standardistaTableSortingInit() on a page that has existing tables (I call it several times to initialize sorting for tables added dynamically via Ajax), the table header columns (which are links) expand. The links get longer and longer every time I call the init() function on a page that has existing tables. A screenshot will explain it better --
http://i29.tinypic.com/kd3e3q.png
(the first table's header row becomes like that after calling the init() function once or twice to init. the tables below it)
Thanks,
Andrew
Screenshot of issue
Resolved by making the tables I didn't want to expand "unsortable" after another table was generated under them.
document.getElementById("table_that_doesnt_need_sorting_anymore").setAttribute("class", "not_sortable_anymore");