jQuery(document).ready(function($) { "use strict"; $(document).on('click', 'a.detail-bnt', function(event){ event.preventDefault(); var data = { cache: false, action: 'quick_view', beforeSend: function() { $('body').append(''); }, 'id': $(this).attr('href'), }; // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php $.post(MyAjax.ajaxurl, data, function(response) { $.magnificPopup.open({ type: 'inline', items: { src: response } }) partdoThemeModule.countdown(); partdoThemeModule.siteslider(); partdoThemeModule.productquantity(); $("form.cart.grouped_form .input-text.qty").attr("value", "0"); $( document.body ).trigger( 'partdoSinglePageInit' ); $(".loader-image").remove(); $('.input-text.qty').closest('.quick-product-wrapper').find( '.input-text.qty' ).val($('.input-text.qty').closest('.quick-product-wrapper').find( '.input-text.qty' ).attr('min')); }); }); });