mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
ensure that the value is a number
This commit is contained in:
parent
24db5bd72a
commit
df72c38f22
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ Ext.extend(Ext.ux.form.Spinner.NumberStrategy, Ext.ux.form.Spinner.Strategy, {
|
||||||
if(!this.allowDecimals || this.decimalPrecision == -1 || nan || !value){
|
if(!this.allowDecimals || this.decimalPrecision == -1 || nan || !value){
|
||||||
return nan ? '' : value;
|
return nan ? '' : value;
|
||||||
}
|
}
|
||||||
return value.toFixed(this.decimalPrecision);
|
return Number(value).toFixed(this.decimalPrecision);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue