- Budget Aufteilung auf Geschäftsjahre

- Tablesorter Bugfix für normale Integer und Zahlen mit Tausenderpunkt
This commit is contained in:
Andreas Österreicher
2011-01-11 10:16:44 +00:00
parent f7a66a14ef
commit 600932521e
5 changed files with 106 additions and 29 deletions
+23 -4
View File
@@ -677,6 +677,13 @@
return RegExp(exp).test($.trim(s));
};
this.isInt = function(s,config) {
if(isNaN(parseInt(s)))
return false;
else
return true;
};
this.clearTableBody = function(table) {
if($.browser.msie) {
function empty() {
@@ -722,12 +729,24 @@
});
ts.addParser({
id: "currency",
is: function(s) {
return /^[£$€?.]/.test(s);
id: "integer",
is: function(s,table) {
var c = table.config;
return $.tablesorter.isInt(s,c);
},
format: function(s) {
return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""));
return $.tablesorter.formatInt(s);
},
type: "numeric"
});
ts.addParser({
id: "currency",
is: function(s) {
return /^[£$€?.,]/.test(s);
},
format: function(s) {
return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.,]/g),""));
},
type: "numeric"
});