forked from 0x2620/pandora
update document panel in pandora_finddocuments
This commit is contained in:
parent
aab6dcc31a
commit
932a12b66e
2 changed files with 6 additions and 4 deletions
|
@ -287,7 +287,9 @@ pandora.ui.folderList = function(id, section) {
|
||||||
// works when switching back from browser, but won't work on load, since
|
// works when switching back from browser, but won't work on load, since
|
||||||
// getListData relies on $folderList, so selectList is called in init handler
|
// getListData relies on $folderList, so selectList is called in init handler
|
||||||
selected: pandora.getListData().folder == id
|
selected: pandora.getListData().folder == id
|
||||||
? [ui[ui.section == 'items' ? '_list' : ui.section.slice(0, -1)]]
|
? [ui[ui.section == 'items' ? '_list'
|
||||||
|
: ui.section == 'documents' ? '_collection'
|
||||||
|
: ui.section.slice(0, -1)]]
|
||||||
: [],
|
: [],
|
||||||
sort: [{key: 'position', operator: '+'}],
|
sort: [{key: 'position', operator: '+'}],
|
||||||
sortable: id != 'featured' || canEditFeatured,
|
sortable: id != 'featured' || canEditFeatured,
|
||||||
|
|
|
@ -23,7 +23,7 @@ pandora.ui.mainPanel = function() {
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
pandora_finddocuments: function() {
|
pandora_finddocuments: function() {
|
||||||
var previousUI = pandora.UI.getPrevious();
|
var previousUI = pandora.UI.getPrevious();
|
||||||
Ox.Log('FIND', 'handled in mainPanel', previousUI.item, previousUI._list)
|
Ox.Log('FIND', 'finddocuments handled in mainPanel', previousUI.document, previousUI._collection)
|
||||||
if (!previousUI.document && ui._collection == previousUI._collection) {
|
if (!previousUI.document && ui._collection == previousUI._collection) {
|
||||||
pandora.$ui.list.reloadList();
|
pandora.$ui.list.reloadList();
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ pandora.ui.mainPanel = function() {
|
||||||
if (pandora.stayInItemView) {
|
if (pandora.stayInItemView) {
|
||||||
pandora.stayInItemView = false;
|
pandora.stayInItemView = false;
|
||||||
} else {
|
} else {
|
||||||
that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel());
|
that.replaceElement(1, pandora.$ui.documentPanel = pandora.ui.documentPanel());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -68,7 +68,7 @@ pandora.ui.mainPanel = function() {
|
||||||
},
|
},
|
||||||
pandora_find: function() {
|
pandora_find: function() {
|
||||||
var previousUI = pandora.UI.getPrevious();
|
var previousUI = pandora.UI.getPrevious();
|
||||||
Ox.Log('FIND', 'handled in mainPanel', previousUI.item, previousUI._list)
|
Ox.Log('FIND', 'find handled in mainPanel', previousUI.item, previousUI._list)
|
||||||
if (!previousUI.item && ui._list == previousUI._list) {
|
if (!previousUI.item && ui._list == previousUI._list) {
|
||||||
if (['map', 'calendar'].indexOf(ui.listView) > -1) {
|
if (['map', 'calendar'].indexOf(ui.listView) > -1) {
|
||||||
pandora.$ui.contentPanel.replaceElement(1,
|
pandora.$ui.contentPanel.replaceElement(1,
|
||||||
|
|
Loading…
Reference in a new issue