default to documents view

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

View File

@ -38,6 +38,7 @@
"canAddItems": {"member": true, "staff": true, "admin": true},
"canAddDocuments": {"member": true, "staff": true, "admin": true},
"canDownloadVideo": {"guest": 0, "member": 0, "staff": 4, "admin": 4},
"canDownloadSource": {"guest": -1, "member": -1, "friend": -1, "staff": -1, "admin": -1},
"canEditAnnotations": {"staff": true, "admin": true},
"canEditEntities": {"staff": true, "admin": true},
"canEditDocuments": {"staff": true, "admin": true},
@ -1383,7 +1384,7 @@
"preferences": "",
"tv": ""
},
"section": "items",
"section": "documents",
"sequenceMode": "shape",
"sequenceSort": [{"key": "director", "operator": "+"}],
"showAdvancedEmbedOptions": false,

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