From 9a41061124423dea3bf64ed9990c6a74575b74e6 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 16 Feb 2012 11:34:46 +0000 Subject: [PATCH] some work towards making the edit annotations menu functional --- static/js/pandora/item.js | 10 ++++++++++ static/js/pandora/utils.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/item.js b/static/js/pandora/item.js index 54b3556b7..0c60b3b82 100644 --- a/static/js/pandora/item.js +++ b/static/js/pandora/item.js @@ -371,6 +371,16 @@ pandora.ui.item = function() { find: function(data) { pandora.UI.set('itemFind', data.find); }, + findannotation: function(data) { + pandora.UI.set({ + item: '', + find: { + conditions: [{key: data.key, value: data.value, operator: '='}], + operator: '&' + }, + listView: 'clip' + }); + }, importannotations: function(data) { pandora.ui.importAnnotations().open(); }, diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index dfdde5084..728bd2ee8 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -1159,7 +1159,7 @@ pandora.unloadWindow = function() { // has a findKey as key and "=" as operator (and all other conditions // are either list or filters), or if all conditions in an | query have // the same filter id as key and "==" as operator - Ox.Log('', 'getFindState', find) + Ox.Log('Find', 'getFindState', find) // FIXME: this is still incorrect when you select a lot of filter items // and reload the page (will be advanced) var conditions, indices, state = {index: -1, key: '*', value: ''};