Changes between Version 59 and Version 60 of Catalogue


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Catalogue

    v59 v60  
    3030        totalAmount += getPrice(el) * el.value;
    3131      }
     32    }
     33    var totalsEl = document.getElementById('totalAmount');
     34    if( totalsEl ) {
     35      totalsEl.firstChild.nodeValue = 'Итого: ' + totalAmount.toDigits(2).toString();
    3236    }
    3337  }
     
    215219<tr>
    216220 <td colspan="3" align="right">
    217   <div id="totalAmount">Итого: 0</div>
     221  <span id="totalAmount">Итого: 0</span>
    218222  <button style="padding: 10px 20px 10px 20px; margin: 10px; align: right;">Оформить заказ &rarr;</button>
    219223 </td>