show list on click, fixes #3031

This commit is contained in:
j 2017-06-09 12:25:38 +02:00
commit 38341a43c6
2 changed files with 47 additions and 36 deletions

View file

@ -21,12 +21,14 @@ pandora.ui.allItems = function(section) {
click: function() {
that.gainFocus();
if (section == 'items') {
pandora.user.ui._list && pandora.UI.set({
find: {conditions: [], operator: '&'}
pandora.UI.set({
find: {conditions: [], operator: '&'},
item: ''
});
} else if (section == 'documents') {
pandora.user.ui._collection && pandora.UI.set({
findDocuments: {conditions: [], operator: '&'}
pandora.UI.set({
findDocuments: {conditions: [], operator: '&'},
document: ''
});
} else {
pandora.UI.set(section.slice(0, -1), '');