From 5d2cdb6ba95549da448e0a127e40fcc375e3886c Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 13 Jan 2010 05:10:46 +0000 Subject: #651810 by Kiphaas7: Fixed can't re-click same tab to re-load its contents. --- modules/overlay/overlay-parent.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js index 345642ee0..93c82b737 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; }; -- cgit v1.2.3