[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/npl/en/includes doc-head-close.inc,1.3,1.4

Owen Leonard oleonard at users.sourceforge.net
Wed Apr 27 21:54:40 CEST 2005


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16649/koha-tmpl/intranet-tmpl/npl/en/includes

Modified Files:
	doc-head-close.inc 
Log Message:
Adding 'checkall' function for columns of checkboxes

Index: doc-head-close.inc
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/includes/doc-head-close.inc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** doc-head-close.inc	4 Feb 2005 19:12:25 -0000	1.3
--- doc-head-close.inc	27 Apr 2005 19:54:38 -0000	1.4
***************
*** 37,40 ****
--- 37,51 ----
  		newwin.close();
  	}
+ 	
+ 	function CheckAll() {
+ 		count = document.mainform.elements.length;
+ 	    for (i=0; i < count; i++) {
+ 		    if(document.mainform.elements[i].checked == 1){
+ 				document.mainform.elements[i].checked = 0;
+ 			} else {
+ 				document.mainform.elements[i].checked = 1;
+ 			}
+ 		}
+ 	}
   
  // end hiding -->





More information about the Koha-cvs mailing list