We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f2254 commit 53d6f2bCopy full SHA for 53d6f2b
grid-type/detection.html
@@ -19,12 +19,14 @@
19
type = "string";
20
21
tbody.children().each( function() {
22
- var cell = $( this.cells[index] ).text();
23
- if ($.global.parseDate(cell)) {
+ var cell = $( this.cells[ index ] ).text();
+ if ( $.global.parseDate( cell ) ) {
24
type = "date";
25
- } else if ($.global.parseFloat(cell)) {
26
- // add check for currency symbol(s) to detecht currency
+ } else if ( $.global.parseFloat( cell ) ) {
27
type = "number"
+ if ( cell.indexOf( $.global.cultures["default"].numberFormat.currency.symbol ) > -1) {
28
+ type = "currency";
29
+ }
30
}
31
});
32
0 commit comments