From 8d05596daf8ce777d0b45dbbd82c912407946604 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 3 Mar 2013 12:02:51 +0000 Subject: [PATCH] in filter form, handle keys with format type percent --- static/js/pandora/filterForm.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/filterForm.js b/static/js/pandora/filterForm.js index e95da003..d6793824 100644 --- a/static/js/pandora/filterForm.js +++ b/static/js/pandora/filterForm.js @@ -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',