reset page on closing update dialog

This commit is contained in:
rlx 2016-01-13 09:50:46 +05:30
parent 5f37f27b9d
commit 4dc7a97504

View file

@ -2,7 +2,9 @@
oml.ui.updateDialog = function() { oml.ui.updateDialog = function() {
var $content = Ox.Element(), var ui = oml.user.ui,
$content = Ox.Element(),
$logo = $('<img>') $logo = $('<img>')
.attr({ .attr({
@ -61,6 +63,9 @@ oml.ui.updateDialog = function() {
.hide() .hide()
.bindEvent({ .bindEvent({
click: function() { click: function() {
if (ui.page == 'update') {
oml.UI.set({page: ''});
}
that.close(); that.close();
} }
}), }),
@ -99,6 +104,9 @@ oml.ui.updateDialog = function() {
}) })
.bindEvent({ .bindEvent({
click: function() { click: function() {
if (ui.page == 'update') {
oml.UI.set({page: ''});
}
that.close(); that.close();
} }
}), }),