Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $.tablesorter.addWidget({
- id: "zebra2",
- format: function(table){
- $("tr:visible",table.tBodies[0])
- .removeClass('odd').filter(':not([@class])').filter(':odd').addClass('odd');
- }
- });
- $.tablesorter.addParser({
- id: "commaNum",
- is: function(s) {
- return false;
- },
- format: function(s) {
- return s.replace(/,/g,'');
- },
- type: 'numeric'
- });
- $("#portfolio").tablesorter({
- widgets: ['zebra2'],
- textExtraction: complex,
- headers: {
- 8: {
- sorter:'commaNum'
- }
- }
- });
- });
Add Comment
Please, Sign In to add comment