forked from 0x2620/oxjs
fix a bug in Ox.ListMap that would keep the form for result places from showing up
This commit is contained in:
parent
d9b0cc5f01
commit
cb208f2333
2 changed files with 16 additions and 13 deletions
|
|
@ -616,9 +616,10 @@ Ox.ListCalendar = function(options, self) {
|
|||
|
||||
function decodeValues(place) {
|
||||
return Ox.map(place, function(value) {
|
||||
return Ox.isString(value) ? Ox.decodeHTMLEntities(value)
|
||||
: Ox.isArray(value) ? Ox.map(value, function(value) {
|
||||
return Ox.decodeHTMLEntities(value);
|
||||
var type = Ox.typeOf(value);
|
||||
return type == 'string' ? Ox.decodeHTMLEntities(value)
|
||||
: type == 'array' ? Ox.map(value, function(value) {
|
||||
return decodeValues(value);
|
||||
})
|
||||
: value;
|
||||
});
|
||||
|
|
@ -642,9 +643,10 @@ Ox.ListCalendar = function(options, self) {
|
|||
|
||||
function encodeValues(place) {
|
||||
return Ox.map(place, function(value) {
|
||||
return Ox.isString(value) ? Ox.encodeHTMLEntities(value)
|
||||
: Ox.isArray(value) ? Ox.map(value, function(value) {
|
||||
return Ox.encodeHTMLEntities(value);
|
||||
var type = Ox.typeOf(value);
|
||||
return type == 'string' ? Ox.encodeHTMLEntities(value)
|
||||
: type == 'array' ? Ox.map(value, function(value) {
|
||||
return encodeValues(value);
|
||||
})
|
||||
: value;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue