Changes between Version 54 and Version 55 of Catalogue


Ignore:
Timestamp:
Jun 27, 2012 12:36:52 AM (12 years ago)
Author:
tolix
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Catalogue

    v54 v55  
    2727    for(var i = 0; i < form.length; i++) {
    2828      var el = form.elements[i];
    29       alert(el.type);
    30       totalAmount += getPrice(el) * parseInt(el.value);
     29      if( el.type == 'text' ) {
     30        totalAmount += getPrice(el) * parseInt(el.value);
     31      }
    3132    }
    3233    alert(totalAmount);