- Patch #663126 by casey: active items in top level IA don't have the light gray background when overlay is enabled.

merge-requests/26/head
Dries Buytaert 2010-02-06 15:00:03 +00:00
parent 25ac9ebe3b
commit bfa877f165
1 changed files with 2 additions and 2 deletions

View File

@ -773,7 +773,7 @@ Drupal.overlay.hashchangeHandler = function (event) {
var linkURL = Drupal.settings.basePath + state;
linkURL = $.param.querystring(linkURL, {'render': 'overlay'});
var path = self.getPath(linkURL);
var path = self.getPath(state);
self.resetActiveClass(path);
// If the modal frame is already open, replace the loaded document with
@ -893,6 +893,7 @@ Drupal.overlay.refreshRegions = function (data) {
*/
Drupal.overlay.resetActiveClass = function(activePath) {
var self = this;
var windowDomain = window.location.protocol + window.location.hostname;
$('.overlay-displace-top, .overlay-displace-bottom')
.find('a[href]')
@ -900,7 +901,6 @@ Drupal.overlay.resetActiveClass = function(activePath) {
.removeClass('active')
// Add active class to links that match activePath.
.each(function () {
var windowDomain = window.location.protocol + window.location.hostname;
var linkDomain = this.protocol + this.hostname;
var linkPath = self.getPath(this);