MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 474: Line 474:
/****************************** Common Gradient ******************************/
/****************************** Common Gradient ******************************/
$(function(){
$(function(){
     var headerList = $('table > tbody > tr').has('> th');
     var headerList = $('table > tbody > tr').has('> th').filter(function(e){
    var rainbowList = $('table > tbody > tr[style*=rainbow]');
 
    headerList = headerList.filter(function(e){
         return $(e).children('td').length == 0;
         return $(e).children('td').length == 0;
     });
     });
    var rainbowList = $('table > tbody > tr[style*=rainbow]');
     headerList = headerList.filter(function(e){
     headerList = headerList.filter(function(e){
         return $.inArray(e, rainbowList) == -1;
         return $.inArray(e, rainbowList) == -1;