data-min fix

This commit is contained in:
Mike Jolley 2012-04-12 22:25:10 +01:00
parent 67956705a4
commit c227540a5b
2 changed files with 3 additions and 2 deletions

View File

@ -137,7 +137,8 @@ jQuery(document).ready(function($) {
// Quantity buttons
$("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass('buttons_added').append('<input type="button" value="+" id="add1" class="plus" />').prepend('<input type="button" value="-" id="minus1" class="minus" />');
$("div.quantity:not(.cart div.quantity), td.quantity").find('.qty').each(function(){
// Target quantity inputs on product pages
$("div.quantity:not(.product-quantity div.quantity), td.quantity").find('.qty').each(function(){
var min = parseInt($(this).attr('data-min'));

File diff suppressed because one or more lines are too long