From ba4702c0d54dfff5072ec273d3ea41e9a879f920 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 9 Jun 2010 15:04:52 +0000 Subject: - Patch #663126 by casey, seutje: active items in top level IA don't have the light gray background when overlay is enabled. --- modules/overlay/overlay-parent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js index 7f021ac8e..eda0463aa 100644 --- a/modules/overlay/overlay-parent.js +++ b/modules/overlay/overlay-parent.js @@ -545,7 +545,7 @@ Drupal.overlay.eventhandlerOperateByURLFragment = function (event) { var url = $.param.querystring(Drupal.settings.basePath + state, { render: 'overlay' }); this.open(url); - this.resetActiveClass(this.getPath(url)); + this.resetActiveClass(this.getPath(Drupal.settings.basePath + state)); } // If there is no overlay URL in the fragment and the overlay is (still) // open, close the overlay. @@ -712,7 +712,7 @@ Drupal.overlay.resetActiveClass = function(activePath) { var linkDomain = this.protocol + this.hostname; var linkPath = self.getPath(this); - if (linkDomain == windowDomain && linkPath == activePath) { + if (linkDomain == windowDomain && activePath.indexOf(linkPath) === 0) { $(this).addClass('active'); } }); -- cgit v1.2.3