koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] koha/koha-tmpl/opac-tmpl/css/en opac-full-seria... [rel_2_2]


From: Henri-Damien LAURENT
Subject: [Koha-cvs] koha/koha-tmpl/opac-tmpl/css/en opac-full-seria... [rel_2_2]
Date: Tue, 08 Aug 2006 15:14:59 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Henri-Damien LAURENT <hdl>      06/08/08 15:14:59

Modified files:
        koha-tmpl/opac-tmpl/css/en: opac-full-serial-issues.tmpl 

Log message:
        Bug fixing 1136 : Opac-full-serial-history.tmpl

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/css/en/opac-full-serial-issues.tmpl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.1.2.7&r2=1.1.2.8

Patches:
Index: opac-full-serial-issues.tmpl
===================================================================
RCS file: 
/sources/koha/koha/koha-tmpl/opac-tmpl/css/en/opac-full-serial-issues.tmpl,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -u -b -r1.1.2.7 -r1.1.2.8
--- opac-full-serial-issues.tmpl        13 Jun 2006 13:59:50 -0000      1.1.2.7
+++ opac-full-serial-issues.tmpl        8 Aug 2006 15:14:59 -0000       1.1.2.8
@@ -15,7 +15,7 @@
        </div>
 
        <!-- TMPL_LOOP NAME="years" -->
-       <div name="<!-- TMPL_VAR NAME="year" -->" id="<!-- TMPL_VAR NAME="year" 
-->" class="tabsub" <!--TMPL_IF Name="first" 
-->style="visibility:visible"<!--/TMPL_IF -->>
+    <div name="yeardata" id="<!-- TMPL_VAR NAME="year" -->" class="tabsub" 
<!--TMPL_IF Name="first" -->style="visibility:visible"<!--/TMPL_IF -->>
                <table width="400px">
                        <tr>
                                <th>Date
@@ -43,6 +43,7 @@
                                        <!-- TMPL_IF Name="status2" 
-->Arrived<!-- /TMPL_IF -->
                                        <!-- TMPL_IF Name="status3" -->Late<!-- 
/TMPL_IF -->
                                        <!-- TMPL_IF Name="status4" 
-->Missing<!-- /TMPL_IF -->
+                    <!-- TMPL_IF Name="status5" -->Not Published<!-- /TMPL_IF 
-->
                                        <!-- TMPL_IF name="notes" -->(<!-- 
TMPL_VAR name="notes" -->)<!-- /TMPL_IF -->
                                </td>
                        </tr>
@@ -54,14 +55,13 @@
 showlayer(<!-- TMPL_VAR name="yearmin" -->);
 function showlayer(numlayer)
 {
-       for (i=<!--TMPL_VAR Name="yearmin"-->; i<=<!--TMPL_VAR 
Name="yearmax"-->; i++ ) {
-        var children=document.getElementsByName(i)
-        for(j=0;j<children.length;j++){
-          if ((children[j].style.visibility == "hidden") && (numlayer==i)){
-            children[j].style.visibility="visible";
+       var yeardata=document.getElementsByName("yeardata");
+    for (i=0; i<=yeardata.length; i++ ) {
+               ong=yeardata[i].getAttribute('id');
+        if (numlayer==ong) {
+                       yeardata[i].style.visibility="visible";
           } else {
-            children[j].style.visibility="hidden";
-          }
+                       yeardata[i].style.visibility="hidden";
         }
        }
 }




reply via email to

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