Changes between Version 48 and Version 49 of Catalogue


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Catalogue

    v48 v49  
    88  function recalc(el) {
    99    var price = parseFloat(el.parentNode.previousSibling.previousSibling.firstChild.nodeValue.replace(/\s/g, ''));
    10     el.nextSibling.nodeValue = ' = ' + (price * el.value).toFixed(2).toString();
     10    var amountEl = el.nextSibling;
     11    if( !amountEl ) {
     12      amountEl = document.createTextNode('');
     13      el.parentNode.appendChild(amountEl);
     14    }
     15    amountEl.nodeValue = ' = ' + (price * el.value).toFixed(2).toString();
    1116  }
    1217
     
    1621    key = String.fromCharCode(key);
    1722    var regex = /[0-9]/;
    18     if(!regex.test(key)) {
     23    if( !regex.test(key) ) {
    1924      theEvent.returnValue = false;
    2025      if(theEvent.preventDefault)
     
    7479 <td class="store"> &times; <input name="monitoring_basic" class="shopping-cart-input"
    7580  onkeyup="javascript:recalc(this)"
    76   onkeypress="javascript:digitsOnly(event)"></input> </td>
     81  onkeypress="javascript:digitsOnly(event)"></input></td>
    7782</tr>
    7883<tr>
    7984 <td class="store"> + учет топлива, 1 месяц</td>
    8085 <td class="store" align="center">200 руб/мес<sup>1</sup></td>
    81  <td class="store"> &times; <input name="monitoring_fuel" class="shopping-cart-input"></input></td>
     86 <td class="store"> &times; <input name="monitoring_fuel" class="shopping-cart-input"
     87  onkeyup="javascript:recalc(this)"
     88  onkeypress="javascript:digitsOnly(event)"></input></td>
    8289</tr>
    8390<tr>
    8491 <td class="store"> + контроль рейсовой работы, 1 месяц</td>
    8592 <td class="store" align="center">200 руб/мес<sup>1</sup></td>
    86  <td class="store"> &times; <input name="monitoring_routes" class="shopping-cart-input"></input></td>
     93 <td class="store"> &times; <input name="monitoring_routes" class="shopping-cart-input"
     94  onkeyup="javascript:recalc(this)"
     95  onkeypress="javascript:digitsOnly(event)"></input></td>
    8796</tr>
    8897<tr>
     
    97106 <td class="store">Лицензия на 10 объектов, неограниченная по времени</td>
    98107 <td class="store" align="center">13 000 руб<sup>2</sup></td>
    99  <td class="store"> &times; <input name="monitorserver_10" class="shopping-cart-input"></input></td>
     108 <td class="store"> &times; <input name="monitorserver_10" class="shopping-cart-input"
     109  onkeyup="javascript:recalc(this)"
     110  onkeypress="javascript:digitsOnly(event)"></input></td>
    100111</tr>
    101112<tr>
    102113 <td class="store">Лицензия на 50 объектов, неограниченная по времени</td>
    103114 <td class="store" align="center">26 000 руб<sup>2</sup></td>
    104  <td class="store"> &times; <input name="monitorserver_50" class="shopping-cart-input"></input></td>
     115 <td class="store"> &times; <input name="monitorserver_50" class="shopping-cart-input"
     116  onkeyup="javascript:recalc(this)"
     117  onkeypress="javascript:digitsOnly(event)"></input></td>
    105118</tr>
    106119<tr>
    107120 <td class="store">Лицензия на 100 объектов, неограниченная по времени</td>
    108121 <td class="store" align="center">39 000 руб<sup>2</sup></td>
    109  <td class="store"> &times; <input name="monitorserver_100" class="shopping-cart-input"></input></td>
     122 <td class="store"> &times; <input name="monitorserver_100" class="shopping-cart-input"
     123  onkeyup="javascript:recalc(this)"
     124  onkeypress="javascript:digitsOnly(event)"></input></td>
    110125</tr>
    111126<tr>
    112127 <td class="store">Лицензия на 200 объектов, неограниченная по времени</td>
    113128 <td class="store" align="center">74 750 руб<sup>2</sup></td>
    114  <td class="store"> &times; <input name="monitorserver_200" class="shopping-cart-input"></input></td>
     129 <td class="store"> &times; <input name="monitorserver_200" class="shopping-cart-input"
     130  onkeyup="javascript:recalc(this)"
     131  onkeypress="javascript:digitsOnly(event)"></input></td>
    115132</tr>
    116133<tr>
     
    130147 <td class="store">Техническое сопровождение, годовая подписка</td>
    131148 <td class="store" align="center">10 000 руб/год</td>
    132  <td class="store"> &times; <input name="subscription_10" class="shopping-cart-input"></input></td>
     149 <td class="store"> &times; <input name="subscription_10" class="shopping-cart-input"
     150  onkeyup="javascript:recalc(this)"
     151  onkeypress="javascript:digitsOnly(event)"></input></td>
    133152</tr>
    134153<tr>
    135154 <td class="store">Техническая поддержка, годовая подписка</td>
    136155 <td class="store" align="center">50 000 руб/год</td>
    137  <td class="store"> &times; <input name="subscription_50" class="shopping-cart-input"></input> (Уровень SLA, 1-5)</td>
     156 <td class="store"> &times; <input name="subscription_50" class="shopping-cart-input"
     157  onkeyup="javascript:recalc(this)"
     158  onkeypress="javascript:digitsOnly(event)"></input> (Уровень SLA, 1-5)</td>
    138159</tr>
    139160<tr>
     
    147168 <td class="store">Датчик уровня топлива (ДУТ) ёмкостной OmniComm LLS</td>
    148169 <td class="store" align="center">9 700 руб</td>
    149  <td class="store"> &times; <input name="subscription_10" class="shopping-cart-input"></input></td>
     170 <td class="store"> &times; <input name="subscription_10" class="shopping-cart-input"
     171  onkeyup="javascript:recalc(this)"
     172  onkeypress="javascript:digitsOnly(event)"></input></td>
    150173</tr>
    151174<tr>
     
    155178 <td class="store">Установка автомобильного трекера</td>
    156179 <td class="store" align="center">1 000 руб</td>
    157  <td class="store"> &times; <input name="tracker_mounting" class="shopping-cart-input"></input></td>
     180 <td class="store"> &times; <input name="tracker_mounting" class="shopping-cart-input"
     181  onkeyup="javascript:recalc(this)"
     182  onkeypress="javascript:digitsOnly(event)"></input></td>
    158183</tr>
    159184<tr>
    160185 <td class="store">Установка ДУТ</td>
    161186 <td class="store" align="center">1 900 руб</td>
    162  <td class="store"> &times; <input name="fuelsensor_mounting" class="shopping-cart-input"></input></td>
     187 <td class="store"> &times; <input name="fuelsensor_mounting" class="shopping-cart-input"
     188  onkeyup="javascript:recalc(this)"
     189  onkeypress="javascript:digitsOnly(event)"></input></td>
    163190</tr>
    164191<tr>
    165192 <td class="store">Настройка и тарировка ДУТ/топливного бака</td>
    166193 <td class="store" align="center">900 руб</td>
    167  <td class="store"> &times; <input name="fuelsensor_mounting" class="shopping-cart-input"></input></td>
     194 <td class="store"> &times; <input name="fuelsensor_mounting" class="shopping-cart-input"
     195  onkeyup="javascript:recalc(this)"
     196  onkeypress="javascript:digitsOnly(event)"></input></td>
    168197</tr>
    169198<tr>