MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 278: Line 278:
         var grad_color = $(this).css('background-color');
         var grad_color = $(this).css('background-color');
         if(grad_transparent != grad_color){ /* If bgcolor is not transparent */
         if(grad_transparent != grad_color){ /* If bgcolor is not transparent */
             $(this).css('background-image', ['linear-gradient(to bottom', '#eee', grad_color + ')'].join(','));
             $(this).children('th').css('background-image', ['linear-gradient(to bottom', '#eee', grad_color + ')'].join(','));
         }
         }
     });
     });
     /* Deal with rainbow rows */
     /* Deal with rainbow rows */
    $('tr.rainbow').each(function(){
/*    $('tr.rainbow').each(function(){
         var rb_totalWidth = parseInt($(this).outerWidth(true));
         var rb_totalWidth = parseInt($(this).outerWidth(true));
         var rb_cStart, rb_cEnd, rb_sumWidth = 0;
         var rb_cStart, rb_cEnd, rb_sumWidth = 0;
Line 293: Line 293:
             });
             });
         });
         });
     });
     });*/
     /*
     /*
         $('table.odd-stripe > tbody > tr:has(td):').css('background-color', function(){
         $('table.odd-stripe > tbody > tr:has(td):').css('background-color', function(){