mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-16 11:39:31 +00:00
- Datum und Gleitkommazahlen werden jetzt richtig sortiert
- Bugfixes der Syncroscripte - Bestellvorlage Menge und VE zentriert
This commit is contained in:
Vendored
+13
-14
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user