URL might be the same, so do explicit URL refresh.
authorMichael M Slusarz <slusarz@curecanti.org>
Sun, 31 May 2009 04:09:24 +0000 (22:09 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Sun, 31 May 2009 04:34:25 +0000 (22:34 -0600)
imp/js/src/DimpBase.js
imp/js/src/DimpCore.js

index d35820e..fe065bb 100644 (file)
@@ -201,7 +201,7 @@ var DimpBase = {
             loc != 'options' &&
             $('appoptions') &&
             $('appoptions').hasClassName('on')) {
-            return DimpCore.redirect(DIMP.conf.URI_DIMP + '#' + loc);
+            return DimpCore.redirect(DIMP.conf.URI_DIMP + '#' + loc, true);
         }
 
         if (loc.startsWith('compose:')) {
index 38f12ad..7f1167e 100644 (file)
@@ -270,13 +270,12 @@ var DimpCore = {
         this.redirect(url || (DIMP.conf.URI_AJAX + '/LogOut'));
     },
 
-    redirect: function(url)
+    redirect: function(url, force)
     {
-        url = this.addURLParam(url);
-        if (parent.frames.horde_main) {
-            parent.location = url;
-        } else {
-            window.location = url;
+        var ptr = parent.frames.horde_main ? parent : window;
+        ptr.location = this.addURLParam(url);
+        if (force) {
+            ptr.location.reload();
         }
     },