restart
This commit is contained in:
@@ -49,9 +49,7 @@
|
||||
$('.basket-quantity').change(function() {
|
||||
var offer_id = $(this).data('id');
|
||||
var quantity = $(this).val();
|
||||
var $row = $(this).parents('.row');
|
||||
console.log("add basket");
|
||||
console.log(quantity);
|
||||
var $row = $(this).closest('.row');
|
||||
updateBasket(offer_id, quantity, function() {
|
||||
calculatePrice($row);
|
||||
calculateTotal();
|
||||
@@ -73,8 +71,6 @@
|
||||
}
|
||||
|
||||
function calculatePrice($that) {
|
||||
console.log('calculatePrice');
|
||||
console.log($that);
|
||||
var quantity = $that.find('.basket-quantity').val();
|
||||
var price = $that.find('.basket-price').text();
|
||||
var total_price = fixNumber(quantity * price);
|
||||
|
||||
Reference in New Issue
Block a user