diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-09 15:04:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-09 15:04:52 +0000 |
commit | ba4702c0d54dfff5072ec273d3ea41e9a879f920 (patch) | |
tree | 96df581a9c483f4fd5300a5c454ab7fbe0f01f17 | |
parent | e4afcae139ec1770a27ff9e2fc3d8bfbd858b04f (diff) | |
download | brdo-ba4702c0d54dfff5072ec273d3ea41e9a879f920.tar.gz brdo-ba4702c0d54dfff5072ec273d3ea41e9a879f920.tar.bz2 |
- Patch #663126 by casey, seutje: active items in top level IA don't have the light gray background when overlay is enabled.
-rw-r--r-- | modules/overlay/overlay-parent.js | 4 |
1 files 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'); } }); |