From fdeeb986d4bbc461def6677ea13eff1b1af8e9e3 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 8 Nov 2011 11:59:18 +0000 Subject: [PATCH] when navigating back, close and remove open dialogs --- static/js/pandora/URL.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index 385f4828..fd063a02 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -266,6 +266,9 @@ pandora.URL = (function() { window.onpopstate = function(e) { Ox.Request.cancel(); self.isPopState = true; + $('.OxDialog:visible').each(function() { + Ox.UI.elements[$(this).data('oxid')].close().remove(); + }); if ( pandora.user.ui.item && pandora.user.ui.itemView == 'video'