MediaWiki:Common.js: Difference between revisions
From Elwiki
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 334: | Line 334: | ||
$("#ca-ve-edit").hide(); | $("#ca-ve-edit").hide(); | ||
var rows_to_highlight = [ | |||
var | 'Normal', | ||
'[Enhanced]', | |||
'PvE', | |||
'PvP' | |||
] | |||
] | |||
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'); | ||
}) | }) | ||
}) | }) | ||
}); | }); |