// Improved quantity
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12640 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
96f62c4b72
commit
4785e8d645
1 file changed
+1
-16
@@ -350,26 +350,11 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.available_quantity').find('input').blur(function(e)
|
$('.available_quantity').find('input').change(function(e, init_val)
|
||||||
{
|
{
|
||||||
ajaxCall( { actionQty: 'set_qty', id_product_attribute: $(this).parent().attr('id').split('_')[1], value: $(this).val() } );
|
ajaxCall( { actionQty: 'set_qty', id_product_attribute: $(this).parent().attr('id').split('_')[1], value: $(this).val() } );
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.available_quantity').find('input').click(function(e)
|
|
||||||
{
|
|
||||||
if(typeof(this.intervalId) != 'undefined')
|
|
||||||
window.clearInterval(this.intervalId);
|
|
||||||
this.intervalId = window.setInterval(function(it, initialValue)
|
|
||||||
{
|
|
||||||
if(initialValue != $(it).val())
|
|
||||||
{
|
|
||||||
window.clearInterval(it.intervalId);
|
|
||||||
$(it).trigger('change');
|
|
||||||
$(it).trigger('click');
|
|
||||||
}
|
|
||||||
}, 500, this, $(this).val())
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.out_of_stock').click(function(e)
|
$('.out_of_stock').click(function(e)
|
||||||
{
|
{
|
||||||
refreshQtyAvaibilityForm();
|
refreshQtyAvaibilityForm();
|
||||||
|
|||||||
Reference in new issue
Block a user