Update upstock.hamlet

touch in-/decrement
This commit is contained in:
Wolf 2015-04-12 18:25:37 +02:00
parent b51dd5e5d2
commit 050b4f257f

View file

@ -9,3 +9,6 @@ $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">