places backend, cleanup padma metadata

This commit is contained in:
j 2012-01-13 01:02:54 +05:30
commit bf518ae603
9 changed files with 137 additions and 87 deletions

View file

@ -64,7 +64,8 @@ pandora.ui.clipList = function(videoRatio) {
// if the item query contains a layer condition,
// then this condition is added to the clip query
itemsQuery.conditions.forEach(function(condition) {
if (Ox.getIndexById(pandora.site.layers, condition.key) > -1) {
if (condition.key == 'annotations'
|| Ox.getIndexById(pandora.site.layers, condition.key) > -1) {
query.conditions.push(condition);
}
});

View file

@ -839,7 +839,8 @@ pandora.isClipView = function(view, item) {
pandora.isItemFind = function(find) {
return find.conditions.length == 1
&& Ox.getIndexById(pandora.site.layers, find.conditions[0].key) > -1
&& (find.conditions[0].key == 'annotations'
||Ox.getIndexById(pandora.site.layers, find.conditions[0].key) > -1)
&& find.conditions[0].operator == '=';
};