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

Antoine Farnault antoine at koha-fr.org
Wed Nov 22 15:03:04 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	Antoine Farnault <toins>	06/11/22 14:03:04

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

Log message:
	fix a javascript error.

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.11&r2=1.1.2.12

Patches:
Index: addbiblio.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/intranet-tmpl/prog/en/cataloguing/addbiblio.tmpl,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -b -r1.1.2.11 -r1.1.2.12
--- addbiblio.tmpl	22 Nov 2006 13:46:07 -0000	1.1.2.11
+++ addbiblio.tmpl	22 Nov 2006 14:03:04 -0000	1.1.2.12
@@ -149,7 +149,14 @@
 
 function active(numlayer){
     for (i=0; i <= 10 ; i++ ) {
-        var tab = document.getElementById(i+'XX');
+	var tab;
+	try{
+		tab = document.getElementById(i+'XX');
+		tab.getAttribute('id'); // do not remove this line. It throws an execption.
+	}
+	catch(e){
+		continue;
+	}
         if (numlayer==i) {
             tab.setAttribute("class","content_visible");
             var tabactive=document.getElementById('link'+i);





More information about the Koha-cvs mailing list