22 lines
485 B
JavaScript
22 lines
485 B
JavaScript
|
( function( $ ) {
|
||
|
|
||
|
$( document ).ready(function( $ ) {
|
||
|
|
||
|
$(".pft-posts-main .pft-post.layout-one").each(function(){
|
||
|
|
||
|
var thumbHeight = $(this).find('.news-thumb img').height();
|
||
|
|
||
|
var infoHeight = $(this).find('.news-text-wrap').height();
|
||
|
|
||
|
if( thumbHeight != null && infoHeight != null && thumbHeight > infoHeight ){
|
||
|
|
||
|
$(this).find('.news-text-wrap').css( 'min-height', thumbHeight+'px');
|
||
|
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
} )( jQuery );
|