update dialog: add close handler

This commit is contained in:
rlx 2016-01-13 12:15:39 +05:30
parent 94b22d3aac
commit 299a63b529

View file

@ -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') {