when navigating back, close and remove open dialogs

This commit is contained in:
rolux 2011-11-08 11:59:18 +00:00
parent 889e7f46a6
commit fdeeb986d4

View file

@ -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'