Commit bb28a4d4 authored by Dries's avatar Dries

- Patch #663126 by casey, ksenzee, seutje: active items in top level IA don't...

- Patch #663126 by casey, ksenzee, seutje: active items in top level IA don't have the light gray background when overlay is enabled.
parent ad41c41f
......@@ -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');
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment