Hey,
I've some problems using my own widget for tablesorters. I've created
a 'addDetails' widget with this source:

>$.tablesorter.addWidget({
>               id:"addDetails",
>               format: function(table){
>                       $("tbody tr", table).click( function() {
>                               $(this).after("<tr id=\"detailRow\"><td 
> colspan=\"6\">Lorum ipsum....</td></tr>");
>                               });
>               }
>       });
>
>
>$.get("index.php?section=wlan_control&act=wlan_user&o=html&list=y", 
>function(data){
>       $("#wlan_list").tablesorter({widgets: ['addDetails']});
>       $("#wlan_list_user").append( data );
>       $("#wlan_list").trigger("update");
>       $("#wlan_list").trigger("sorton", [[1,1]] );
>        });

This should add a new row with some informations by clicking on a row.
But this works only if I sort the table  first.
And if I sort the table a second time and want to expand the details
informations by clicking on a row, the row with the detail
informations will added twice... by sorting a third times, 3 rows will
be added. I think it's a bug, because I've got the same problem by the
'repeatHeaders' example on the tablesorter page (http://
tablesorter.com/docs/example-widgets.html).

Does anybody has an idea for solving this problem?

Thanks,
confuso

Reply via email to