if (e.min !== undefined) {
min = e.min;
}
+ // } else {
+ // var m = e.name.match(/, min[\,\.]([\d+])/);
+ // if (m != null) {
+ // min = m[1];
+ // }
+ // }
console.log('set min qty for ' + sku + ' : ' + min)
$this.minQuantities[sku] = min;
return false;
}
} else if (currentLocation.indexOf('{') === 0) {
var location = JSON.parse(currentLocation);
- if (location.maxPage) {
+ if (location.maxPage && fluidbook.settings.hasContentLock) {
fluidbook.contentlock.setMaxPage(location.maxPage, true);
}
if (location.page) {