equal
deleted
inserted
replaced
884 ts.addParser({ |
884 ts.addParser({ |
885 id: "text", |
885 id: "text", |
886 is: function (s) { |
886 is: function (s) { |
887 return true; |
887 return true; |
888 }, format: function (s) { |
888 }, format: function (s) { |
889 return $.trim(s.toLocaleLowerCase()); |
889 return $.trim(s); // CW PATCH: lowercasing decision taken in the server |
890 }, type: "text" |
890 }, type: "text" |
891 }); |
891 }); |
|
892 |
|
893 // CW PATCH: ugly hack to catch booleans |
|
894 ts.addParser({ |
|
895 id: 'boolean', |
|
896 is: function (s) { |
|
897 return (s == "true" || s == "false"); |
|
898 }, |
|
899 format: function (s) { |
|
900 if (s) { return "0"; } else { return "1"; } |
|
901 }, |
|
902 type: 'boolean'}); |
892 |
903 |
893 ts.addParser({ |
904 ts.addParser({ |
894 id: "digit", |
905 id: "digit", |
895 is: function (s, table) { |
906 is: function (s, table) { |
896 var c = table.config; |
907 var c = table.config; |