daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function() {
  2. $.tablesorter.addWidget({
  3.     id: "zebra2",
  4.     format: function(table){
  5.         $("tr:visible",table.tBodies[0])
  6.             .removeClass('odd').filter(':not([@class])').filter(':odd').addClass('odd');
  7.     }
  8. });
  9. $.tablesorter.addParser({
  10.     id: "commaNum",
  11.     is: function(s) {
  12.         return false;
  13.     },
  14.     format: function(s) {
  15.         return s.replace(/,/g,'');
  16.     },
  17.     type: 'numeric'
  18. });
  19. $("#portfolio").tablesorter({
  20.             widgets: ['zebra2'],
  21.                         textExtraction: complex,
  22.             headers: {
  23.                 8: {
  24.                     sorter:'commaNum'
  25.                 }
  26.          }
  27.         });
  28.  
  29. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top