مدیاویکی:Common.js: تفاوت میان نسخه‌ها

۱۹۵ بایت اضافه‌شده ،  ‏۱۱ ژانویهٔ ۲۰۱۸
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۲۶۳: خط ۲۶۳:
function align_box(){
function align_box(){
     $('.box-55').each(function(){
     $('.box-55').each(function(){
        var that = $(this).next('.box-45, .box-45-pic-mini');
         var this_height = $(this).outerHeight();
         var this_height = $(this).outerHeight();
         $(this).next('.box-45, .box-45-pic-mini').css('min-height', this_height)
         var that_height = that.outerHeight();
        if(this_height > that_height) {
            that.css('min-height', this_height);
        } else {
            $(this).css('min-height', that_height);
        }
     });
     });
}
}
۵۴۶

ویرایش