in filter form, handle keys with format type percent

This commit is contained in:
rolux 2013-03-03 12:02:51 +00:00
parent 9e88109907
commit 8d05596daf

View file

@ -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',