in filter form, handle keys with format type percent
This commit is contained in:
parent
9e88109907
commit
8d05596daf
1 changed files with 4 additions and 1 deletions
|
@ -16,10 +16,13 @@ pandora.ui.filterForm = function(list) {
|
||||||
that.append(
|
that.append(
|
||||||
that.$filter = Ox.Filter({
|
that.$filter = Ox.Filter({
|
||||||
findKeys: pandora.site.itemKeys.map(function(itemKey) {
|
findKeys: pandora.site.itemKeys.map(function(itemKey) {
|
||||||
var key = Ox.clone(itemKey);
|
var key = Ox.clone(itemKey, true);
|
||||||
key.type = key.type == 'layer'
|
key.type = key.type == 'layer'
|
||||||
? Ox.getObjectById(pandora.site.layers, key.id).type
|
? Ox.getObjectById(pandora.site.layers, key.id).type
|
||||||
: key.type;
|
: key.type;
|
||||||
|
if (key.format && key.format.type == 'ColorPercent') {
|
||||||
|
key.format.type = 'percent';
|
||||||
|
}
|
||||||
return key;
|
return key;
|
||||||
}).concat([{
|
}).concat([{
|
||||||
id: 'list',
|
id: 'list',
|
||||||
|
|
Loading…
Reference in a new issue