default to documents view
This commit is contained in:
parent
c9ef3cba57
commit
7bc2c4fa21
2 changed files with 6 additions and 5 deletions
|
@ -38,6 +38,7 @@
|
||||||
"canAddItems": {"member": true, "staff": true, "admin": true},
|
"canAddItems": {"member": true, "staff": true, "admin": true},
|
||||||
"canAddDocuments": {"member": true, "staff": true, "admin": true},
|
"canAddDocuments": {"member": true, "staff": true, "admin": true},
|
||||||
"canDownloadVideo": {"guest": 0, "member": 0, "staff": 4, "admin": 4},
|
"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},
|
"canEditAnnotations": {"staff": true, "admin": true},
|
||||||
"canEditEntities": {"staff": true, "admin": true},
|
"canEditEntities": {"staff": true, "admin": true},
|
||||||
"canEditDocuments": {"staff": true, "admin": true},
|
"canEditDocuments": {"staff": true, "admin": true},
|
||||||
|
@ -1383,7 +1384,7 @@
|
||||||
"preferences": "",
|
"preferences": "",
|
||||||
"tv": ""
|
"tv": ""
|
||||||
},
|
},
|
||||||
"section": "items",
|
"section": "documents",
|
||||||
"sequenceMode": "shape",
|
"sequenceMode": "shape",
|
||||||
"sequenceSort": [{"key": "director", "operator": "+"}],
|
"sequenceSort": [{"key": "director", "operator": "+"}],
|
||||||
"showAdvancedEmbedOptions": false,
|
"showAdvancedEmbedOptions": false,
|
||||||
|
|
|
@ -81,20 +81,20 @@ pandora.ui.home = function() {
|
||||||
var folder = pandora.getListData().folder,
|
var folder = pandora.getListData().folder,
|
||||||
value = $findInput.value();
|
value = $findInput.value();
|
||||||
folder && pandora.$ui.folderList[folder].options({selected: []});
|
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.findSelect.value('*');
|
||||||
pandora.$ui.findInput.value(value);
|
pandora.$ui.findInput.value(value);
|
||||||
}
|
}
|
||||||
that.fadeOutScreen();
|
that.fadeOutScreen();
|
||||||
pandora.UI.set({
|
pandora.UI.set({
|
||||||
page: '',
|
page: '',
|
||||||
find: {
|
findDocuments: {
|
||||||
conditions: value === ''
|
conditions: value === ''
|
||||||
? []
|
? []
|
||||||
: [{key: '*', value: value, operator: '='}],
|
: [{key: '*', value: value, operator: '='}],
|
||||||
operator: '&'
|
operator: '&'
|
||||||
},
|
},
|
||||||
section: 'items'
|
section: 'documents'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -116,7 +116,7 @@ pandora.ui.home = function() {
|
||||||
click: function() {
|
click: function() {
|
||||||
pandora.UI.set({
|
pandora.UI.set({
|
||||||
page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page,
|
page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page,
|
||||||
section: 'items'
|
section: 'documents'
|
||||||
});
|
});
|
||||||
that.fadeOutScreen();
|
that.fadeOutScreen();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue