add link from documents dialog to entities dialog

This commit is contained in:
rolux 2014-11-19 18:30:58 +00:00
parent 45d5eadf50
commit e6b5dcb346

View file

@ -7,6 +7,19 @@ pandora.ui.documentsDialog = function() {
var dialogHeight = Math.round((window.innerHeight - 48) * 0.9), var dialogHeight = Math.round((window.innerHeight - 48) * 0.9),
dialogWidth = Math.round(window.innerWidth * 0.9), dialogWidth = Math.round(window.innerWidth * 0.9),
// FIXME: user may not have the manage entites capability
$switchButton = Ox.Button({
title: Ox._('Manage Entities...')
})
.bindEvent({
click: function() {
that.close();
(pandora.$ui.entitiesDialog || (
pandora.$ui.entitiesDialog = pandora.ui.entitiesDialog()
)).open();
}
}),
$doneButton = Ox.Button({ $doneButton = Ox.Button({
id: 'done', id: 'done',
title: Ox._('Done'), title: Ox._('Done'),
@ -23,7 +36,7 @@ pandora.ui.documentsDialog = function() {
}), }),
that = Ox.Dialog({ that = Ox.Dialog({
buttons: [$doneButton], buttons: [$switchButton, {}, $doneButton],
closeButton: true, closeButton: true,
content: $content, content: $content,
height: dialogHeight, height: dialogHeight,