From 31dce7330aed72b238329722f76cc7bd0fc32253 Mon Sep 17 00:00:00 2001 From: nek0 Date: Thu, 23 Apr 2015 03:44:52 +0200 Subject: [PATCH] update js --- static/js/crementing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }