mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
- Sortierung Erweitert für Tabellen mit Spalten im Format '31.12.2014 15:32'
This commit is contained in:
@@ -742,6 +742,18 @@
|
||||
type: "numeric"
|
||||
});
|
||||
|
||||
ts.addParser({
|
||||
id: "DatummitUhrzeit",
|
||||
is: function(s) {
|
||||
alert("CHECK");
|
||||
return s.match(new RegExp(/^[0-9]{1,2}.[0-9]{1,2}.[0-9]{4} ( (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]))$/));
|
||||
},
|
||||
format: function(s) {
|
||||
return $.tablesorter.formatFloat(new Date(s).getTime());
|
||||
},
|
||||
type: "numeric"
|
||||
});
|
||||
|
||||
ts.addParser({
|
||||
id: "integer",
|
||||
is: function(s,table) {
|
||||
@@ -806,7 +818,8 @@
|
||||
},
|
||||
type: "numeric"
|
||||
});
|
||||
|
||||
|
||||
|
||||
ts.addParser({
|
||||
id: "percent",
|
||||
is: function(s) {
|
||||
|
||||
Vendored
+11
@@ -768,6 +768,17 @@
|
||||
type: "numeric"
|
||||
});
|
||||
|
||||
ts.addParser({
|
||||
id: "DatummitUhrzeit",
|
||||
is: function(s) {
|
||||
return s.match(new RegExp(/^[0-9]{1,2}.[0-9]{1,2}.[0-9]{4} (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]))$/));
|
||||
},
|
||||
format: function(s) {
|
||||
return $.tablesorter.formatFloat(new Date(s.replace(/(\d{1,2})[\/\.](\d{1,2})[\/\.](\d{4})/, "$3/$2/$1")).getTime());
|
||||
},
|
||||
type: "numeric"
|
||||
});
|
||||
|
||||
ts.addParser({
|
||||
id: "integer",
|
||||
is: function(s,table) {
|
||||
|
||||
Reference in New Issue
Block a user