projecten
This commit is contained in:
@@ -18,9 +18,9 @@ dbo.helpers = {
|
||||
|
||||
// convert to comma or point number
|
||||
if ( point ) {
|
||||
input = input.replace( ',', '' );
|
||||
input = input.toString().replace( ',', '' );
|
||||
} else {
|
||||
input = input.replace( '.', '' );
|
||||
input = input.toString().replace( '.', '' );
|
||||
}
|
||||
|
||||
//remain only last comma or point and remove all non numbers
|
||||
@@ -58,6 +58,7 @@ dbo.helpers = {
|
||||
},
|
||||
|
||||
mysql2date : function(date){
|
||||
if( ! date ) return null;
|
||||
if( date.length != 10 ) return null;
|
||||
|
||||
var dateParts = date.split("-");
|
||||
|
||||
Reference in New Issue
Block a user