Disable lightbox on mobile devices

To disable lightbox on mobile devices, please add this code to Custom JS field in Content Views >> Settings page:

/* Disable lightbox in mobile devices */
if (PT_CV_PUBLIC.is_mobile) {
var lbclass = 'pt-cv-lightbox';
$('.' + lbclass).removeClass(lbclass).attr('target','_blank');
}

Best regards,