diff --git a/static/js/crementing.js b/static/js/crementing.js index 6af33f6..3b463e5 100644 --- a/static/js/crementing.js +++ b/static/js/crementing.js @@ -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; }