update js

This commit is contained in:
nek0 2015-04-23 03:44:52 +02:00
parent 465f51d169
commit 31dce7330a

View file

@ -8,5 +8,5 @@ calling like
*/
function crmnt( e, i ) { /* read: in-/decrement ( dom-element, signed-integer ) */
var d = parseInt( e.value ) + i;
e.value = ( d < 1 )? 1 : e.value = d;
e.value = ( d <= 0 )? 0 : d;
}