fix setting /update url

This commit is contained in:
rlx 2016-01-14 14:20:53 +05:30
parent b10a710a63
commit db8a3f2689
2 changed files with 6 additions and 4 deletions

View file

@ -119,8 +119,12 @@ oml.ui.appDialog = function() {
})
.bindEvent({
close: function() {
if (Ox.contains(tabs.map(function(tab) {
return tab.id;
}), ui.page)) {
oml.UI.set({page: ''});
}
}
});
that.updateElement = function(section) {

View file

@ -348,11 +348,9 @@ oml.ui.mainMenu = function() {
click: function(data) {
var id = data.id;
if (Ox.contains([
'about', 'faq', 'terms', 'development', 'contact'
'about', 'faq', 'terms', 'development', 'contact', 'update'
], id)) {
oml.UI.set({page: id});
} else if (id == 'update') {
oml.$ui.updateDialog = oml.ui.updateDialog().open();
} else if (id == 'quit') {
oml.api.quit();
} else if (id == 'preferences') {