﻿$.tablesorter.addWidget({
    id: "rowHover",
    format: function(table) {       
        $j("tbody tr:visible", table).hover(
        function() {
            $j(this).addClass(table.config.widgetRowHover.css);
        },
        function() {
            $j(this).removeClass(table.config.widgetRowHover.css);
        });
    }
});



$.tablesorter.addWidget({
    id: "addSortingIndicatorsForIEScrollableTable",
    format: function(table) {
                
        var extraTableSuffix = "0";

        $j("#" + table.id + extraTableSuffix + " thead").find("tr:first").children("th").each(function() {
                    
            $j(this).removeClass("headerSortUp headerSortDown");

            var cell = $j("#" + table.id + " thead").find("tr:first").children("th").eq(this.column);

            if (cell.hasClass("headerSortUp")) {
                $j(this).addClass("headerSortUp");
            }

            if (cell.hasClass("headerSortDown")) {
                $j(this).addClass("headerSortDown");
            }

        });



    }
});