[Koha-devel] Fix for NPL intranet template bug

Nicholas van Rheede van Oudtshoorn vanoudt at gmail.com
Tue Nov 27 08:51:41 CET 2007


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++ ) {
                ong = i+"XX";
                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";
                        }
                        }
                }
        }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20071127/d09fe6a1/attachment-0002.htm>


More information about the Koha-devel mailing list