Commit ba4702c0 authored by Dries's avatar Dries
Browse files

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

- Patch #663126 by casey, seutje: active items in top level IA don't have the light gray background when overlay is enabled.
parent e4afcae1
......@@ -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');
}
});
......
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