Changes between Version 45 and Version 46 of Catalogue


Ignore:
Timestamp:
Jun 26, 2012 11:36:28 PM (13 years ago)
Author:
tolix
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Catalogue

    v45 v46  
    77  function recalc(el) {
    88    var price = parseFloat(el.parentNode.previousSibling.previousSibling.firstChild.nodeValue.replace(/\s/g, ''));
    9     el.nextSibling.nodeValue = ' = ' + str(price * el.value);
     9    el.nextSibling.nodeValue = ' = ' + (price * el.value).toFixed(2).toString();
    1010  }
    1111</script>