forked from 0x2620/pandora
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.$filter = Ox.Filter({
|
||||
findKeys: pandora.site.itemKeys.map(function(itemKey) {
|
||||
var key = Ox.clone(itemKey);
|
||||
var key = Ox.clone(itemKey, true);
|
||||
key.type = key.type == 'layer'
|
||||
? Ox.getObjectById(pandora.site.layers, key.id).type
|
||||
: key.type;
|
||||
if (key.format && key.format.type == 'ColorPercent') {
|
||||
key.format.type = 'percent';
|
||||
}
|
||||
return key;
|
||||
}).concat([{
|
||||
id: 'list',
|
||||
|
|
Loading…
Reference in a new issue