mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix table sorting
This commit is contained in:
parent
9bc7a5dc98
commit
196e5ef026
@ -292,7 +292,7 @@
|
|||||||
// parse 1,000.00 or 1.000,00
|
// parse 1,000.00 or 1.000,00
|
||||||
function convertStringToNumber(str) {
|
function convertStringToNumber(str) {
|
||||||
str = str + '' || '';
|
str = str + '' || '';
|
||||||
if (str.indexOf(':')) {
|
if (str.indexOf(':') >= 0) {
|
||||||
return roundToTwo(moment.duration(str).asHours());
|
return roundToTwo(moment.duration(str).asHours());
|
||||||
} else {
|
} else {
|
||||||
var number = Number(str.replace(/[^0-9]+/g, ''));
|
var number = Number(str.replace(/[^0-9]+/g, ''));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user