diff --git a/static/js/pandora/item.js b/static/js/pandora/item.js index 54b3556b..0c60b3b8 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 dfdde508..728bd2ee 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: ''};