Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
216
0
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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement