MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 482: Line 482:
/****************************** Common Gradient ******************************/
/****************************** Common Gradient ******************************/
$(function(){
$(function(){
     $('table > tbody > tr > th').each(function(){
     $('table > tbody > tr > th').$(this).css({'backgroundImage': 'linear-gradient(to bottom, #eee, ' + this.style.backgroundColor + ')'});
        var bgc = this.style.backgroundColor;
        $(this).css({'backgroundImage': 'linear-gradient(to bottom, #eee, ' + bgc + ');'});
    });
});
});