SHARE
TWEET

Untitled

a guest May 22nd, 2017 172 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Workaround to refresh zebra-striping using tableActions.js
  2. // post sorting using tablesort.js
  3.  
  4. // Include this snippet in the initSort function of tablesort.js
  5. if ("fdTableActions" in window) {
  6.     fdTableActions.init(fdTableSort.tableId);
  7. }
  8.  
  9.  
  10. // Replace this line of code in the init function of tableActions.js
  11. if(i % 2 == 0 && rowAlt) rowList[i].className = rowList[i].className + " " + rowAlt;
  12.  
  13. // with this code ...
  14. var classStr = rowList[i].className;
  15. var strippedStr = classStr.replace(rowAlt, "");
  16.  
  17. if(i % 2 == 0 && rowAlt)
  18. {
  19.     rowList[i].className = strippedStr + " " + rowAlt;
  20. }
  21. else
  22. {
  23.     rowList[i].className = strippedStr;
  24. }
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