Fix table sorting

This commit is contained in:
Hillel Coren 2017-07-30 20:24:05 +03:00
parent 9bc7a5dc98
commit 196e5ef026

View File

@ -292,7 +292,7 @@
// parse 1,000.00 or 1.000,00
function convertStringToNumber(str) {
str = str + '' || '';
if (str.indexOf(':')) {
if (str.indexOf(':') >= 0) {
return roundToTwo(moment.duration(str).asHours());
} else {
var number = Number(str.replace(/[^0-9]+/g, ''));