diff --git a/static/js/updateDialog.js b/static/js/updateDialog.js index 962d0b9..367d80e 100644 --- a/static/js/updateDialog.js +++ b/static/js/updateDialog.js @@ -2,7 +2,9 @@ oml.ui.updateDialog = function() { - var $content = Ox.Element(), + var ui = oml.user.ui, + + $content = Ox.Element(), $logo = $('') .attr({ @@ -61,6 +63,9 @@ oml.ui.updateDialog = function() { .hide() .bindEvent({ click: function() { + if (ui.page == 'update') { + oml.UI.set({page: ''}); + } that.close(); } }), @@ -99,6 +104,9 @@ oml.ui.updateDialog = function() { }) .bindEvent({ click: function() { + if (ui.page == 'update') { + oml.UI.set({page: ''}); + } that.close(); } }),