add Ox.formatBoolean

This commit is contained in:
rlx 2016-01-19 16:40:58 +05:30
parent 1799631d60
commit 0d5d4e3dd0

View file

@ -230,6 +230,9 @@
script = document.createElement('script'); script = document.createElement('script');
script.onload = function() { script.onload = function() {
Ox.load({UI: {theme: theme}}, function() { Ox.load({UI: {theme: theme}}, function() {
Ox.formatBoolean = function(value) {
return value ? 'yes' : 'no';
};
Ox.formatUpper = function(string) { Ox.formatUpper = function(string) {
return string.toUpperCase(); return string.toUpperCase();
}; };