David schrieb:
How can disable 3 header ? not one.


do you mean the tablesorter from "http://motherrussia.polyester.se"; ?

if so:

i've had the same 'problem' and patched "my" tablesorter by adding some ifs:
-> should be around line 125

if(defaults.addHeaderLink) {
        $(oCell).wrapInner({element: '<a href="#">', name: 'a', className: 
'sorter'});
        if ($(oCell).attr('class').indexOf('nosort') == -1)
        {
                $(".sorter",oCell).click(
                function(e) {
                        sortOnColumn( $(this).parent(), 
((defaults.lockedSortDir) ? defaults.lockedSortDir : 
$(this).parent()[0].count++) % 2, $(this).parent()[0].index );
                        return false;
                });
        }
} else {
        if ($(oCell).attr('class').indexOf('nosort') == -1)
        {
                $(oCell).click(
                function(e) {
                        sortOnColumn( $(this), ((defaults.lockedSortDir) ? 
defaults.lockedSortDir : $(this)[0].count++) % 2, $(this)[0].index );
                                return false;
                });
        }
}


i've added the "if ($(oCell).attr('class').indexOf('nosort') == -1)" lines, so if your table-headers have a class "nosort" they are not sortable.

cheers

micha

Reply via email to