diff --git a/lib/client/config.js b/lib/client/config.js index 22c07e54..3608fb8e 100644 --- a/lib/client/config.js +++ b/lib/client/config.js @@ -240,10 +240,9 @@ var CloudCmd, Util, DOM, io; switch(type) { case 'checkbox': data = el.checked; - break; case 'number': - data = el.value - 0; + data = Number(el.value); break; default: data = el.value;