default to documents view

This commit is contained in:
j 2019-12-01 15:10:23 +01:00
commit 7bc2c4fa21
2 changed files with 6 additions and 5 deletions

View file

@ -81,20 +81,20 @@ pandora.ui.home = function() {
var folder = pandora.getListData().folder,
value = $findInput.value();
folder && pandora.$ui.folderList[folder].options({selected: []});
if (pandora.user.ui.section == 'items') {
if (pandora.user.ui.section == 'documents') {
pandora.$ui.findSelect.value('*');
pandora.$ui.findInput.value(value);
}
that.fadeOutScreen();
pandora.UI.set({
page: '',
find: {
findDocuments: {
conditions: value === ''
? []
: [{key: '*', value: value, operator: '='}],
operator: '&'
},
section: 'items'
section: 'documents'
});
}
})
@ -116,7 +116,7 @@ pandora.ui.home = function() {
click: function() {
pandora.UI.set({
page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page,
section: 'items'
section: 'documents'
});
that.fadeOutScreen();
}