Don't target the frameset when redirecting.
authorJan Schneider <jan@horde.org>
Wed, 12 May 2010 14:38:21 +0000 (16:38 +0200)
committerJan Schneider <jan@horde.org>
Wed, 12 May 2010 14:38:21 +0000 (16:38 +0200)
kronolith/js/kronolith.js

index c7d8724..40ae3a5 100644 (file)
@@ -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);
         }
     },