Tablesorter Re-initialize after destroy
On page load I initialize the tablesorter like so:
$('#tableId').tablesorter({
// sort on the first column, order asc
sortList: [[5,1]],
cssDesc: "headerSortDownFan",
cssAsc: "headerSortUpFan",
cssInfoBlock : "tablesorter-no-sort",
headers: {
".sortingDisabled": {
sorter: false
}
},
// apply custom widget
widgets: ['numbering']
});
Then on a click event I destroy it with:
$('#tableId').trigger("destroy");
When I go to re-intialize by invoking the following again:
$('#tableId').tablesorter({
// sort on the first column, order asc
sortList: [[5,1]],
cssDesc: "headerSortDownFan",
cssAsc: "headerSortUpFan",
cssInfoBlock : "tablesorter-no-sort",
headers: {
".sortingDisabled": {
sorter: false
}
},
// apply custom widget
widgets: ['numbering']
});
The tablesorter no longer works.
Any help would be greatly appreciated