update js
This commit is contained in:
parent
465f51d169
commit
31dce7330a
1 changed files with 1 additions and 1 deletions
|
@ -8,5 +8,5 @@ calling like
|
||||||
*/
|
*/
|
||||||
function crmnt( e, i ) { /* read: in-/decrement ( dom-element, signed-integer ) */
|
function crmnt( e, i ) { /* read: in-/decrement ( dom-element, signed-integer ) */
|
||||||
var d = parseInt( e.value ) + i;
|
var d = parseInt( e.value ) + i;
|
||||||
e.value = ( d < 1 )? 1 : e.value = d;
|
e.value = ( d <= 0 )? 0 : d;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue