Update upstock.hamlet

centralizing de/increment js-func
This commit is contained in:
Wolf 2015-04-12 19:30:12 +02:00
parent 937f653313
commit c5b9725072
1 changed files with 2 additions and 3 deletions

View File

@ -9,6 +9,5 @@ $doctype 5
^{upstockWidget}
<div>
<input type=submit value="_{MsgFillup}">
<input onclick="e=document.getElementById('hident2');e.value=parseInt(e.value)+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="_{MsgIncrement}" type="button">
<input onclick="crmnt( document.getElementById('hident2'), -1 )" value="_{MsgDecrement}" type="button">