default to documents view
This commit is contained in:
parent
c9ef3cba57
commit
7bc2c4fa21
2 changed files with 6 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue