update main menu, app dialog, update dialog

This commit is contained in:
rlx 2016-01-13 09:46:48 +05:30
commit 5f37f27b9d
6 changed files with 34 additions and 17 deletions

View file

@ -7,7 +7,7 @@ oml.ui.appDialog = function() {
tabs = Ox.getObjectById(oml.config.pages, 'app').parts.map(function(tab) {
return {
id: tab.id,
title: tab.title.replace(/ Open Media Library$/, ''),
title: tab.title,
selected: tab.id == ui.part.app
};
}),
@ -142,8 +142,20 @@ oml.ui.appDialog = function() {
that = Ox.Dialog({
buttons: [
Ox.Button({
id: 'update',
style: 'squared',
title: Ox._('Software Update...')
})
.bindEvent({
click: function() {
oml.UI.set({page: 'update'});
}
}),
{},
Ox.Button({
id: 'close',
style: 'squared',
title: Ox._('Close')
}).bindEvent({
click: function() {