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');
     var rainbowList = $('table > tbody > tr[style*=rainbow]');
     var rainbowList = $('table > tbody > tr[style*=rainbow]');


     headerList = headerList.filter(function(e){
     headerList = headerList.filter(function(e){
         return !($(e).has('td'));
         return $(e).children('> td').length;
     });
     });
     headerList = headerList.filter(function(e){
     headerList = headerList.filter(function(e){