caleres-zoom
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -87,2 +87,3 @@ var modalTemplate = require('../templates/modal'); | ||
var m = $(m); | ||
window.myM = m; | ||
var img = new Image(); | ||
@@ -101,3 +102,2 @@ var src = m.find('#zoom-images .active img').first().attr('data-src'); | ||
m.find('#prod-view-nav li').click(function(){ | ||
console.log('clicked'); | ||
base.options.view = $(this).index(); | ||
@@ -126,6 +126,6 @@ base.jumpToView(m.find('#zoom-images-container')); | ||
if ($('.rightCol .js-virtual-cart-btn').length < 1) { | ||
$selectSize.css({'width':$selectSize.width(),'height':$selectSize.height()}).find('select').remove(); | ||
$selectSize.css({'width':$selectSize.outerWidth(),'height':$selectSize.outerHeight()}).find('select').remove(); | ||
$addToCart.addClass('inactive').html('Adding... <i class="icon-cart-empty">'); | ||
} | ||
$('.rightCol .addToCart, .rightCol .js-virtual-cart-btn').trigger('click'); | ||
$addToCart.data('$proxy').trigger('click'); | ||
} else { | ||
@@ -232,3 +232,2 @@ alert('Please select a size'); | ||
} | ||
console.log('JUMP: ' + base.jump); | ||
if (base.jump > 0 || Math.abs(base.jump) >= base.total) { | ||
@@ -282,3 +281,3 @@ base.$zoomEl.addClass( base.options.resetClass ); | ||
src: $(this).attr('src').replace(/\?.*/, base.options.zoomVars + base.options.zoomWidth), | ||
active : $('img[id$="imgLargeDisplay"]').attr('src').replace(/\?.*/, base.options.zoomVars + base.options.zoomWidth) == $(this).attr('src').replace(/\?.*/, base.options.zoomVars + base.options.zoomWidth) ? true : false | ||
active : $('img[id$="imgLargeDisplay"]').attr('src').replace(/\?.*/, base.options.zoomVars + base.options.zoomWidth).indexOf($(this).attr('src').replace(/\?.*/, base.options.zoomVars + base.options.zoomWidth)) !== -1 ? true : false | ||
} | ||
@@ -285,0 +284,0 @@ }).get(), |
{ | ||
"name": "caleres-zoom", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "A zoom package for the Caleres web team.", | ||
@@ -17,5 +17,5 @@ "main": "index.js", | ||
"license": "ISC", | ||
"_id": "caleres-zoom@0.0.8", | ||
"_shasum": "35cc4207e410f012f80c59254158641fddc4c879", | ||
"_from": "caleres-zoom@0.0.8", | ||
"_id": "caleres-zoom@0.0.10", | ||
"_shasum": "8fc780660064ff1385b16d0c99ab278cdf683ab7", | ||
"_from": "caleres-zoom@*", | ||
"_npmVersion": "2.11.3", | ||
@@ -28,4 +28,4 @@ "_nodeVersion": "0.12.7", | ||
"dist": { | ||
"shasum": "35cc4207e410f012f80c59254158641fddc4c879", | ||
"tarball": "http://registry.npmjs.org/caleres-zoom/-/caleres-zoom-0.0.8.tgz" | ||
"shasum": "8fc780660064ff1385b16d0c99ab278cdf683ab7", | ||
"tarball": "http://registry.npmjs.org/caleres-zoom/-/caleres-zoom-0.0.10.tgz" | ||
}, | ||
@@ -39,3 +39,4 @@ "maintainers": [ | ||
"directories": {}, | ||
"_resolved": "https://registry.npmjs.org/caleres-zoom/-/caleres-zoom-0.0.8.tgz" | ||
"_resolved": "https://registry.npmjs.org/caleres-zoom/-/caleres-zoom-0.0.10.tgz", | ||
"readme": "ERROR: No README data found!" | ||
} |
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
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
54262
880
1