Jump to content

MediaWiki:Common.js: Difference between revisions

attempting to replace the regex that hasClass() offered
(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 ($('div[theTable.className*="by-column-"]'))
                var patt = /by-column/;
                 if (patt.test(theTable.className))
                 {
                 {
                     for (var col = 1; col < 10; col++)
                     for (var col = 1; col < 10; col++)