- Datum und Gleitkommazahlen werden jetzt richtig sortiert

- Bugfixes der Syncroscripte
- Bestellvorlage Menge und VE zentriert
This commit is contained in:
Andreas Österreicher
2011-02-02 16:19:15 +00:00
parent eb1daa087d
commit 337b9caa88
8 changed files with 71 additions and 66 deletions
+13 -14
View File
@@ -1080,11 +1080,23 @@ if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data
},
type: "numeric"
});
ts.addParser({
id: "dedate",
is: function(s) {
return /^\d{1,2}.\d{1,2}.\d{2,4}$/.test(s);
},
format: function(s) {
s = s.replace(/(\d{1,2}).(\d{1,2}).(\d{2,4})/, "$2/$1/$3");
return $.tablesorter.formatFloat(new Date(s).getTime());
},
type: "numeric"
});
ts.addParser({
id: "digitmittausenderpunkt",
is: function(s) {
return /^[0-9.,]/.test(s);
return /^[0-9]*[.][0-9]*[,]*[0-9]*$/.test(s);
},
format: function(s) {
return $.tablesorter.formatFloat(s.replace('.',""));
@@ -1201,19 +1213,6 @@ if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data
type: "numeric"
});
ts.addParser({
id: "dedate",
is: function(s) {
return /\d{1,2}.\d{1,2}.\d{2,4}/.test(s);
},
format: function(s) {
s = s.replace(/(\d{1,2}).(\d{1,2}).(\d{2,4})/, "$2/$1/$3");
return $.tablesorter.formatFloat(new Date(s).getTime());
},
type: "numeric"
});
ts.addParser({
id: "time",
is: function(s) {