koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/cataloguin... [rel_3_0]


From: Antoine Farnault
Subject: [Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/cataloguin... [rel_3_0]
Date: Wed, 22 Nov 2006 13:46:07 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_3_0
Changes by:     Antoine Farnault <toins>        06/11/22 13:46:07

Modified files:
        koha-tmpl/intranet-tmpl/prog/en/cataloguing: addbiblio.tmpl 

Log message:
        re-introduce the good version of a JavaScript function (active)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/cataloguing/addbiblio.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.10&r2=1.1.2.11

Patches:
Index: addbiblio.tmpl
===================================================================
RCS file: 
/sources/koha/koha/koha-tmpl/intranet-tmpl/prog/en/cataloguing/addbiblio.tmpl,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -u -b -r1.1.2.10 -r1.1.2.11
--- addbiblio.tmpl      17 Nov 2006 13:18:59 -0000      1.1.2.10
+++ addbiblio.tmpl      22 Nov 2006 13:46:07 -0000      1.1.2.11
@@ -146,35 +146,27 @@
        var checkform = document.getElementById("f");
        Check(checkform);
 }
-function active(numlayer)
-{
-       for (i=0; i <= 9 ; i++ ) {
-               ong = i+"XX";
-               link = "link"+i;
+
+function active(numlayer){
+    for (i=0; i <= 10 ; i++ ) {
+        var tab = document.getElementById(i+'XX');
                if (numlayer==i) {
-                       with(document){
-                       if (document.getElementById(ong)){
-                               
document.getElementById(ong).style.visibility="visible";
-                       }
-                       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";
-                       }
-                       if (document.getElementById(link)) {
-                               
document.getElementById(link).style.color="#669999";
-                               
document.getElementById(link).style.backgroundColor="#D8DEB8";
-                       }
+            tab.setAttribute("class","content_visible");
+            var tabactive=document.getElementById('link'+i);
+            tabactive.removeAttribute("class");
+            tabactive.setAttribute("class","tab_active");
+        } else {
+            tab.setAttribute("class","content_hidden");
+            try {
+                var tabactive=document.getElementById('link'+i);
+                tabactive.removeAttribute("class");
+                tabactive.setAttribute("class","tab_inactive");
                        }
+            catch(e){};
                }
        }
 }
-active(0);
+
 function Check(f) {
        document.body.style.cursor ="wait";
        // Scan for nonempty fields




reply via email to

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