Update upstock.hamlet
centralizing de/increment js-func
This commit is contained in:
parent
937f653313
commit
c5b9725072
1 changed files with 2 additions and 3 deletions
|
@ -9,6 +9,5 @@ $doctype 5
|
||||||
^{upstockWidget}
|
^{upstockWidget}
|
||||||
<div>
|
<div>
|
||||||
<input type=submit value="_{MsgFillup}">
|
<input type=submit value="_{MsgFillup}">
|
||||||
<input onclick="e=document.getElementById('hident2');e.value=parseInt(e.value)+1;" value="_{MsgIncrement}" type="button">
|
<input onclick="crmnt( document.getElementById('hident2'), 1 )" value="_{MsgIncrement}" type="button">
|
||||||
<input onclick="e=document.getElementById('hident2');e.value=(parseInt(e.value)>=1)?parseInt(e.value)-1:0;" value="_{MsgDecrement}" type="button">
|
<input onclick="crmnt( document.getElementById('hident2'), -1 )" value="_{MsgDecrement}" type="button">
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue