some work towards making the edit annotations menu functional
This commit is contained in:
parent
6327889594
commit
9a41061124
2 changed files with 11 additions and 1 deletions
|
@ -371,6 +371,16 @@ pandora.ui.item = function() {
|
||||||
find: function(data) {
|
find: function(data) {
|
||||||
pandora.UI.set('itemFind', data.find);
|
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) {
|
importannotations: function(data) {
|
||||||
pandora.ui.importAnnotations().open();
|
pandora.ui.importAnnotations().open();
|
||||||
},
|
},
|
||||||
|
|
|
@ -1159,7 +1159,7 @@ pandora.unloadWindow = function() {
|
||||||
// has a findKey as key and "=" as operator (and all other conditions
|
// 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
|
// are either list or filters), or if all conditions in an | query have
|
||||||
// the same filter id as key and "==" as operator
|
// 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
|
// FIXME: this is still incorrect when you select a lot of filter items
|
||||||
// and reload the page (will be advanced)
|
// and reload the page (will be advanced)
|
||||||
var conditions, indices, state = {index: -1, key: '*', value: ''};
|
var conditions, indices, state = {index: -1, key: '*', value: ''};
|
||||||
|
|
Loading…
Reference in a new issue