This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).on('wc_additional_variation_images_frontend_image_swap_callback wc_additional_variation_images_frontend_on_reset wc_additional_variation_images_frontend_ajax_default_image_swap_callback', 'body', function( e, response, gallery_images_class, main_images_class, o_gallery_images, o_main_images ) { | |
// remove items | |
jQuery( '#product-img-slider' ).remove(); | |
// add items back | |
jQuery( '.product .images' ).html( '<div id="product-img-slider" class="flexslider"><ul class="slides"></ul></div>' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jQuery plugin based on .load() for use with innerShiv | |
// http://jdbartlett.github.com/innershiv for more info | |
// $('selector').loadShiv('example.html'); | |
jQuery.fn.loadShiv = function (url, params, callback) { | |
var off, selector, self, type; | |
if (!this.length || typeof url !== 'string') { | |
return this; | |
} |