summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngie Byron2010-01-13 05:10:46 (GMT)
committerAngie Byron2010-01-13 05:10:46 (GMT)
commit5d2cdb6ba95549da448e0a127e40fcc375e3886c (patch)
tree1bd7deb3f8626be2f837440c007f5b25170f9a65
parentc33d0f7be84eef3f3cd3a6d4855fc315adb3c554 (diff)
#651810 by Kiphaas7: Fixed can't re-click same tab to re-load its contents.
-rw-r--r--modules/overlay/overlay-parent.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js
index 345642e..93c82b7 100644
--- a/modules/overlay/overlay-parent.js
+++ b/modules/overlay/overlay-parent.js
@@ -365,6 +365,12 @@ Drupal.overlay.redirect = function (link) {
var absolute = location.href.match(/https?:\/\/[^\/]*/)[0];
link = absolute + link;
}
+
+ // If the link is already open, force the haschange event.
+ if (location.href == link) {
+ $(window).trigger('hashchange.overlay-event');
+ }
+
location.href = link;
return true;
};