Hi.
This Code:
// FANCYBOX - OPEN ITEM FORM (COMMENT / SEND FRIEND / PUBLIC CONTACT / SELLER CONTACT)
$('body').on('click', '.open-form', function(e) {
e.preventDefault();
var height = 600;
var url = $(this).attr('href');
var formType = $(this).attr('data-type');
if(url.indexOf('loginRequired') !== -1) {
window.location.href = url;
return;
}
if(formType == 'comment') {
height = (userLogged == 1 ? 490 : 640);
height += ($(this).hasClass('has-rating') ? 55 : 0);
} else if(formType == 'contact') {
height = (userLogged == 1 ? 490 : 640);
} else if(formType == 'friend') {
height = (userLogged == 1 ? 540 : 705);
} else if(formType == 'contact_public') {
height = (userLogged == 1 ? 490 : 640);
}
epsModal({
width: 380,
height: height,
content: url,
wrapClass: 'item-extra-form',
closeBtn: true,
iframe: true,
fullscreen: 'mobile',
transition: 200,
delay: 0,
lockScroll: true
});
});
var height = 600;
or
else if(formType == 'friend') {
height = (userLogged == 1 ? 540 : 705);
Thanks
Peter