From c4d31b58fd33ba760bee97e07c29d56e7aeecdd8 Mon Sep 17 00:00:00 2001 From: Drake Date: Wed, 6 Dec 2006 23:06:01 +0000 Subject: [PATCH] Fix bug with bits of hidden admin bar panels showing through, or at least it works now in Firefox. --- docs/changelog/7.x.x.txt | 1 + www/extras/slidePanel/slidePanel.js | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 2f0371e5a..cdffd6236 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -48,6 +48,7 @@ - fix: visitor name disappearing on preview in CS - fix: HTTP proxy not passing form elements through - upgrade script patches some corrupted commerce template settings + - fix: bits of other panels showing through in admin bar - The Events Calendar is now the new Calendar with some fun new features. All your existing Events Calendars will be migrated automatically. - rfe: multiple redirects on a page - which one? diff --git a/www/extras/slidePanel/slidePanel.js b/www/extras/slidePanel/slidePanel.js index 986d5b7bc..df0678222 100644 --- a/www/extras/slidePanel/slidePanel.js +++ b/www/extras/slidePanel/slidePanel.js @@ -211,12 +211,15 @@ function sp_showPanel(nr) { this.aktPanel=nr; l = this.panels.length; for (i=0;inr) { - this.panels[i].obj.style.top=this.height-((l-i)*slidePanelButtonHeight)+"px"; - } else { - this.panels[i].obj.style.top=i*slidePanelButtonHeight+"px"; - } + //alert(nr); + if (i>nr) { + this.panels[i].obj.style.top=this.height-((l-i)*slidePanelButtonHeight)+"px"; + } else { + this.panels[i].obj.style.top=i*slidePanelButtonHeight+"px"; + } + + // Fix bug with bits of other panels showing through. + this.panels[i].objf.style.visibility = (i == nr)? 'visible' : 'hidden'; } }