summaryrefslogtreecommitdiff
path: root/modules/overlay
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-07-31 11:55:31 +0000
committerDries Buytaert <dries@buytaert.net>2010-07-31 11:55:31 +0000
commitbb28a4d4c814ec2995e2776e49df90fb0ce56a89 (patch)
treeeba00db679b29dccb6bb6c715ecdd0cda17e3510 /modules/overlay
parentad41c41fe4587518bfc66de19124bcedf1c43ebd (diff)
downloadbrdo-bb28a4d4c814ec2995e2776e49df90fb0ce56a89.tar.gz
brdo-bb28a4d4c814ec2995e2776e49df90fb0ce56a89.tar.bz2
- Patch #663126 by casey, ksenzee, seutje: active items in top level IA don't have the light gray background when overlay is enabled.
Diffstat (limited to 'modules/overlay')
-rw-r--r--modules/overlay/overlay-parent.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js
index 859091133..bb3067857 100644
--- a/modules/overlay/overlay-parent.js
+++ b/modules/overlay/overlay-parent.js
@@ -735,7 +735,9 @@ Drupal.overlay.resetActiveClass = function(activePath) {
var linkDomain = this.protocol + this.hostname;
var linkPath = self.getPath(this);
- if (linkDomain == windowDomain && activePath.indexOf(linkPath) === 0) {
+ // A link matches if it is part of the active trail of activePath, except
+ // for frontpage links.
+ if (linkDomain == windowDomain && (activePath + '/').indexOf(linkPath + '/') === 0 && (linkPath !== '' || activePath === '')) {
$(this).addClass('active');
}
});