main menu: add entries for preview and fullscreen
This commit is contained in:
parent
a51f5cef09
commit
097708fedd
3 changed files with 34 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ oml.ui.list = function() {
|
|||
}
|
||||
},
|
||||
closepreview: function() {
|
||||
oml.$ui.mainMenu.setItemTitle('preview', Ox._('Show Preview'));
|
||||
oml.$ui.previewButton.options({value: false});
|
||||
oml.$ui.previewDialog.close();
|
||||
delete oml.$ui.previewDialog;
|
||||
|
|
@ -112,6 +113,7 @@ oml.ui.list = function() {
|
|||
},
|
||||
openpreview: function() {
|
||||
if (!oml.$ui.previewDialog) {
|
||||
oml.$ui.mainMenu.setItemTitle('preview', Ox._('Hide Preview'));
|
||||
oml.$ui.previewButton.options({value: true});
|
||||
oml.$ui.previewDialog = oml.ui.previewDialog()
|
||||
.open()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue