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() .hide()
.bindEvent({ .bindEvent({
click: function() { click: function() {
if (ui.page == 'update') {
oml.UI.set({page: ''});
}
that.close(); that.close();
} }
}), }),
@ -104,9 +101,6 @@ oml.ui.updateDialog = function() {
}) })
.bindEvent({ .bindEvent({
click: function() { click: function() {
if (ui.page == 'update') {
oml.UI.set({page: ''});
}
that.close(); that.close();
} }
}), }),
@ -123,6 +117,13 @@ oml.ui.updateDialog = function() {
removeOnClose: true, removeOnClose: true,
title: 'Software Update', title: 'Software Update',
width: 512 width: 512
})
.bindEvent({
close: function() {
if (ui.page == 'update') {
oml.UI.set({page: ''});
}
}
}); });
if (oml.version != 'git') { if (oml.version != 'git') {