documents data view
This commit is contained in:
parent
446a748a79
commit
a218b906cc
3 changed files with 14 additions and 2 deletions
|
@ -400,7 +400,7 @@ pandora.URL = (function() {
|
||||||
// Documents
|
// Documents
|
||||||
views['documents'] = {
|
views['documents'] = {
|
||||||
list: ['grid', 'list', 'pages'],
|
list: ['grid', 'list', 'pages'],
|
||||||
item: ['view', 'info']
|
item: ['view', 'info', 'data']
|
||||||
};
|
};
|
||||||
sortKeys['documents'] = {
|
sortKeys['documents'] = {
|
||||||
list: {
|
list: {
|
||||||
|
|
|
@ -52,6 +52,13 @@ pandora.ui.document = function() {
|
||||||
$content.replaceWith(
|
$content.replaceWith(
|
||||||
$content = pandora.ui.documentInfoView(result.data)
|
$content = pandora.ui.documentInfoView(result.data)
|
||||||
);
|
);
|
||||||
|
} else if (pandora.user.ui.documentView == 'data') {
|
||||||
|
$content.replaceWith(
|
||||||
|
$content = Ox.TreeList({
|
||||||
|
data: result.data,
|
||||||
|
width: pandora.$ui.mainPanel.size(1) - Ox.UI.SCROLLBAR_SIZE
|
||||||
|
})
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
setContent();
|
setContent();
|
||||||
}
|
}
|
||||||
|
|
|
@ -184,7 +184,12 @@ pandora.ui.documentToolbar = function() {
|
||||||
items: [
|
items: [
|
||||||
{id: 'info', title: Ox._('View Info')},
|
{id: 'info', title: Ox._('View Info')},
|
||||||
{id: 'view', title: Ox._('View Document')}
|
{id: 'view', title: Ox._('View Document')}
|
||||||
],
|
].concat(
|
||||||
|
pandora.hasCapability('canSeeExtraItemViews') ? [
|
||||||
|
{id: 'data', title: Ox._('View Data')}
|
||||||
|
] : []
|
||||||
|
|
||||||
|
),
|
||||||
value: ui.documentView,
|
value: ui.documentView,
|
||||||
width: 128
|
width: 128
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue