<# hasVideo = ( data.rtwpvg_video_link ) ? 'rtwpvg-gallery-video' : '' #> <# thumbnailSrc = ( data.rtwpvg_video_link ) ? data.video_thumbnail_src : data.gallery_thumbnail_src #> <# videoHeight = ( data.rtwpvg_video_width ) ? data.rtwpvg_video_width : 'auto' #> <# videoWidth = ( data.rtwpvg_video_height ) ? data.rtwpvg_video_height : '100%' #> <# swiperClass = ( rtwpvg.using_swiper ) ? 'swiper-slide' : '' #>
<# } #> <# if(data.rtwpvg_video_embed_type == 'iframe') { #>
<# } #> <# }else{ #> <# if( data.src ){ #>
<# } #> <# } #>
jQuery(document).ready(function($){ $(document).on('click', '.plus', function(e) { // replace '.quantity' with document (without single quote) $input = $(this).prev('input.qty'); var val = parseInt($input.val()); var step = $input.attr('step'); step = 'undefined' !== typeof(step) ? parseInt(step) : 2; $input.val( val + step ).change();
}); $(document).on('click', '.minus', // replace '.quantity' with document (without single quote) function(e) { $input = $(this).next('input.qty'); var val = parseInt($input.val()); var step = $input.attr('step'); step = 'undefined' !== typeof(step) ? parseInt(step) : 2; if (val > 0) { $input.val( val - step ).change(); } });
});
0