jQuery(document).ready(function() {
var $singleImage = jQuery('.single .images');
var $singleSummary = jQuery('.single .summary');
var $singleUpSell = jQuery('.single .appsell-custom');
if ( jQuery($singleImage.height()) < jQuery($singleSummary.height()) ) {
jQuery($singleUpSell.css({
'min-height': jQuery($singleSummary.height() + 'px')
}));
}
else {
jQuery($singleUpSell.css({
'min-height': jQuery($singleImage.height() + 'px')
}));
}
});
$(function() {
var imagesHeight = $('.single .images').height(),
summaryHeight = $('.single .summary').height(),
appSellHeight = imagesHeight > summaryHeight ? imagesHeight : summaryHeight;
$('.single .appsell-custom').css({
'min-height': appSellHeight + 'px'
});
});