Skip to content

Commit

Permalink
removed document ready
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbaldelomar committed Apr 10, 2017
1 parent 365177f commit 713f3f6
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions includes/js/woocommerce.product.js
Expand Up @@ -7,20 +7,18 @@
( function( $ ) {
"use strict";

$(document).ready(function(){
if( jQuery().magnificPopup) {
$("a[data-rel^='prettyPhoto']").magnificPopup({
gallery: {
enabled: true
},
type:'image',
});
$("a[rel^='prettyPhoto']").magnificPopup({
gallery: {
enabled: true
},
type:'image',
});
}
});
if( jQuery().magnificPopup) {
$("a[data-rel^='prettyPhoto']").magnificPopup({
gallery: {
enabled: true
},
type:'image',
});
$("a[rel^='prettyPhoto']").magnificPopup({
gallery: {
enabled: true
},
type:'image',
});
}
} )( jQuery );

0 comments on commit 713f3f6

Please sign in to comment.