19,667
edits
(replacing obsolete hasClass() with $(element).hasClass()) |
(attempting to replace the regex that hasClass() offered) |
||
| Line 537: | Line 537: | ||
// First check if there is any by-column-x class at all, then take the time to figure out the value of x | // First check if there is any by-column-x class at all, then take the time to figure out the value of x | ||
if ( | var patt = /by-column/; | ||
if (patt.test(theTable.className)) | |||
{ | { | ||
for (var col = 1; col < 10; col++) | for (var col = 1; col < 10; col++) | ||