/*
$Id: add_all_to_cart_form.js,v 1.0 2009/12/11 14:09:00 matvey Exp $
vim: set ts=2 sw=2 sts=2 et:
*/

/*
 * Get filled 'quantity' field values and assign it to the 'Add all items to cart' form
 */
function calculateProductAmounts() {
  if (available_productids.length <= 0) {
    return false;
  }
  for (var i = 0; i < available_productids.length; i++) {
    amount = $("#product_avail_" + available_productids[i]).val();
    if (amount != 1) {
      $("#product_amounts_" + available_productids[i]).val(amount);
    }
  }
  return true;
}


