Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Workaround to refresh zebra-striping using tableActions.js
- // post sorting using tablesort.js
- // Include this snippet in the initSort function of tablesort.js
- if ("fdTableActions" in window) {
- fdTableActions.init(fdTableSort.tableId);
- }
- // Replace this line of code in the init function of tableActions.js
- if(i % 2 == 0 && rowAlt) rowList[i].className = rowList[i].className + " " + rowAlt;
- // with this code ...
- var classStr = rowList[i].className;
- var strippedStr = classStr.replace(rowAlt, "");
- if(i % 2 == 0 && rowAlt)
- {
- rowList[i].className = strippedStr + " " + rowAlt;
- }
- else
- {
- rowList[i].className = strippedStr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement