mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
4ec4e0f44e
|
@ -596,6 +596,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanFloat(number) {
|
function cleanFloat(number) {
|
||||||
|
if(!number) { // in a JavaScript context, meaning, if it's null or zero or unset
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
if ("{{$snipeSettings->digit_separator}}" == "1.234,56") {
|
if ("{{$snipeSettings->digit_separator}}" == "1.234,56") {
|
||||||
// yank periods, change commas to periods
|
// yank periods, change commas to periods
|
||||||
periodless = number.toString().replace("\.","");
|
periodless = number.toString().replace("\.","");
|
||||||
|
|
Loading…
Reference in a new issue