htmltable problem (and solution)

The excellent htmltable extension (http://www.yiiframework.com/extension/htmltable/) gives some javascript errors that break pages.

It has an easy fix though - there are a couple of trailing commas within curly brackets that causes IE to go haywire.

I’m too new to comment the extension-page myself but thought I could post here so atleast it gets indexed and searchable if anyone else has the same problem.

Example:


function htmltableUiSort(myId,sortColumn,sortOrder){

            // Enable table sorter for the table

            var selector = '#'+myId+'-body-table';

            $(selector).tablesorter({

                         cssHeader: "unsorted",

                         sortList: [[sortColumn,sortOrder]], <--- omg

            });



UPDATE: Author has fixed the problem in rev 1.3.7.

Cheers!