some work towards making the edit annotations menu functional

This commit is contained in:
rolux 2012-02-16 11:34:46 +00:00
parent 6327889594
commit 9a41061124
2 changed files with 11 additions and 1 deletions

View file

@ -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();
},

View file

@ -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: ''};