caleres-zoom
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -125,5 +125,12 @@ var modalTemplate = require('../templates/modal'); | ||
$selectSize.css({'width':$selectSize.outerWidth(),'height':$selectSize.outerHeight()}).find('select').remove(); | ||
if(base.options.addToCartWrap) { | ||
$addToCart.children().first().data('$proxy').trigger('click'); | ||
} | ||
else { | ||
$addToCart.data('$proxy').trigger('click'); | ||
} | ||
$addToCart.addClass('inactive').html('Adding... <i class="icon-cart-empty">'); | ||
} | ||
$addToCart.data('$proxy').trigger('click'); | ||
} else { | ||
@@ -136,2 +143,6 @@ alert('Please select a size'); | ||
$selectSize.appendTo( $cartActionsLocation ); | ||
if(base.options.addToCartWrap) { | ||
$addToCart = $addToCart.wrap(base.options.addToCartWrap).parent(); | ||
} | ||
$addToCart.appendTo( $cartActionsLocation ); | ||
@@ -353,8 +364,8 @@ | ||
$.dZoom.defaultOptions = { | ||
leftArrowMarkup: '<', | ||
rightArrowMarkup: '>', | ||
loadMarkup: '<div id="zoom-loader"></div>', | ||
loadLocation: '#shoesItem', | ||
zoomNoticeLocation: '.prodImgWrap', | ||
zoomNoticeMarkup: '<div id="zoom-message-wrapper"><div id="zoom-message"><i class="icon-zoom"></i>' + ($('html').hasClass('touch') ? 'doubletap' : 'click') + ' for larger image</div></div>', | ||
leftArrowMarkup: '<', | ||
rightArrowMarkup: '>', | ||
loadMarkup: '<div id="zoom-loader"></div>', | ||
loadLocation: '#shoesItem', | ||
zoomNoticeLocation: '.prodImgWrap', | ||
zoomNoticeMarkup: '<div id="zoom-message-wrapper"><div id="zoom-message"><i class="icon-zoom"></i>' + ($('html').hasClass('touch') ? 'doubletap' : 'click') + ' for larger image</div></div>', | ||
zoomVars: '?trim.threshold=105&paddingWidth=60&height=550&anchor=bottomcenter&width=', | ||
@@ -368,3 +379,4 @@ zoomWidth: 1200, | ||
nextClass : 'jumping', | ||
resetClass : 'bouncing' | ||
resetClass : 'bouncing', | ||
addToCartWrap: false | ||
}; | ||
@@ -371,0 +383,0 @@ |
{ | ||
"name": "caleres-zoom", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "A zoom package for the Caleres web team.", | ||
@@ -17,4 +17,4 @@ "main": "index.js", | ||
"license": "ISC", | ||
"_id": "caleres-zoom@0.0.10", | ||
"_shasum": "8fc780660064ff1385b16d0c99ab278cdf683ab7", | ||
"_id": "caleres-zoom@0.0.11", | ||
"_shasum": "2c2d582c68c29e0f3d94a89023530ce9d862cb9f", | ||
"_from": "caleres-zoom@*", | ||
@@ -21,0 +21,0 @@ "_npmVersion": "2.11.3", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
54557
889
0