From 4dc7a97504d9b774e6adc836d5d7960feecc8b26 Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 13 Jan 2016 09:50:46 +0530 Subject: [PATCH] reset page on closing update dialog --- static/js/updateDialog.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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(); } }),