MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 342: Line 342:


     rows_to_highlight.forEach(function (rowContent) {
     rows_to_highlight.forEach(function (rowContent) {
         var rows = $(`[class^="colortable-"] td b:contains("${rowContent}")`);
         var rows = $('[class^="colortable-"] td b:contains("' + rowContent + '")');
         rows.each(function () {
         rows.each(function () {
             if ($(this).text() == rowContent) $(this).parent().addClass('tone-4');
             if ($(this).text() == rowContent) $(this).parent().addClass('tone-4');