MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 475: Line 475:
$(function(){
$(function(){
     var headerList = $('table > tbody > tr').has('th');
     var headerList = $('table > tbody > tr').has('th');
    var filterList = headerList.has('td');
     var rainbowList = $('table > tbody > tr[style*=rainbow]');
     var rainbowList = $('table > tbody > tr[style*=rainbow]');


     headerList = headerList.filter(filterList);
     headerList = headerList.filter(function(e){
     headerList = headerList.filter(rainbowList);
        retune !($(this).has('td'));
console.log(headerList);
    });
     headerList = headerList.filter(function(e){
        return !($(this).inArray(rainbowList));
 
     headerList.each(function(){
     headerList.each(function(){
         var bgc = $(this).css('background-color');
         var bgc = $(this).css('background-color');