koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-devel] Fix for NPL intranet template bug


From: Nicholas van Rheede van Oudtshoorn
Subject: [Koha-devel] Fix for NPL intranet template bug
Date: Tue, 27 Nov 2007 15:51:41 +0800

Hello,

There's a rather irritating CSS bug with the NPL acqui.simple/addbiblio.tmpl template. When you click on the tab numbers, the selected tab is made visible, and all other tabs made invisible. Unfortunately, (at least in the latest Firefox!), the invisible tabs still occupy the same space they would if they were visible. I'm not sure if it's the right fix, but the following version of the active() _javascript_ function (inside the template file) seems to fix it (Added lines are bolded). Apologies that this isn't a patch - I never got around to figuring out how to use the patch command properly!

Nicholas van Oudtshoorn

function active(numlayer)
{
        for (i=0; i <= 9 ; i++ ) {
                >                link = "link"+i;
                if (numlayer==i) {
                        with(document){
                        if (document.getElementById(ong)){
                                document.getElementById(ong).style.visibility="visible";
                                document.getElementById(ong).style.height="auto";
                        }
                        if(document.getElementById(link)){
                                document.getElementById(link).style.color="#000066";
                                document.getElementById(link).style.backgroundColor="#FFFFCC";
                        }
                        }
                } else {
                        with(document){
                        if (document.getElementById(ong)){
                                document.getElementById(ong).style.visibility="hidden";
                                document.getElementById(ong).style.height="0";
                        }
                        if (document.getElementById(link)) {
                                document.getElementById(link).style.color="#669999";
                                document.getElementById(link).style.backgroundColor="#D8DEB8";
                        }
                        }
                }
        }
}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]