update dialog: add close handler
This commit is contained in:
parent
94b22d3aac
commit
299a63b529
1 changed files with 7 additions and 6 deletions
|
@ -63,9 +63,6 @@ oml.ui.updateDialog = function() {
|
|||
.hide()
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
if (ui.page == 'update') {
|
||||
oml.UI.set({page: ''});
|
||||
}
|
||||
that.close();
|
||||
}
|
||||
}),
|
||||
|
@ -104,9 +101,6 @@ oml.ui.updateDialog = function() {
|
|||
})
|
||||
.bindEvent({
|
||||
click: function() {
|
||||
if (ui.page == 'update') {
|
||||
oml.UI.set({page: ''});
|
||||
}
|
||||
that.close();
|
||||
}
|
||||
}),
|
||||
|
@ -123,6 +117,13 @@ oml.ui.updateDialog = function() {
|
|||
removeOnClose: true,
|
||||
title: 'Software Update',
|
||||
width: 512
|
||||
})
|
||||
.bindEvent({
|
||||
close: function() {
|
||||
if (ui.page == 'update') {
|
||||
oml.UI.set({page: ''});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (oml.version != 'git') {
|
||||
|
|
Loading…
Reference in a new issue