From 9fc014fd1658b05b2634e89c11ba1079eddc6b30 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 12 May 2010 16:38:21 +0200 Subject: [PATCH] Don't target the frameset when redirecting. --- kronolith/js/kronolith.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index c7d872486..40ae3a569 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -242,13 +242,11 @@ KronolithCore = { redirect: function(url, force) { - var ptr = parent.frames.horde_main ? parent : window; - - ptr.location.assign(this.addURLParam(url)); + window.location.assign(this.addURLParam(url)); // Catch browsers that don't redirect on assign(). if (force && !Prototype.Browser.WebKit) { - (function() { ptr.location.reload(); }).delay(0.5); + (function() { window.location.reload(); }).delay(0.5); } }, -- 2.11.0