mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
ensure that the value is a number
This commit is contained in:
parent
24db5bd72a
commit
df72c38f22
@ -412,7 +412,7 @@ Ext.extend(Ext.ux.form.Spinner.NumberStrategy, Ext.ux.form.Spinner.Strategy, {
|
||||
if(!this.allowDecimals || this.decimalPrecision == -1 || nan || !value){
|
||||
return nan ? '' : value;
|
||||
}
|
||||
return value.toFixed(this.decimalPrecision);
|
||||
return Number(value).toFixed(this.decimalPrecision);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user