[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/npl/en/bull search.tmpl,1.1.2.2,1.1.2.3

Owen Leonard oleonard at users.sourceforge.net
Thu Aug 25 20:00:44 CEST 2005


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

Modified Files:
      Tag: rel_2_2
	search.tmpl 
Log Message:
Fix for bug 585 (Using 'document.forms[0]' notation prevents use of other forms on page) Changing the reference from [0] to ['f'], with 'f' being the form name, seems to work fine.

Index: search.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/bull/search.tmpl,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -r1.1.2.2 -r1.1.2.3
*** search.tmpl	18 Jan 2005 21:38:05 -0000	1.1.2.2
--- search.tmpl	25 Aug 2005 18:00:39 -0000	1.1.2.3
***************
*** 33,54 ****
  </form>
  
! <script>
! function sql_update() {
! document.f.sql.value="";
! 	for (i=0 ; i<document.f.marclist.length ; i++) {
! 		if (document.f.value[i].value.length>0) {
! 			document.f.sql.value = document.f.sql.value+
! 										document.f.and_or[i].value + ' (' +
! 										document.f.excluding[i].value + ' ' +
! 										document.f.marclist[i].value + ' ' +
! 										document.f.operator[i].value + ' ' +
! 										'\''+document.f.value[i].value + '\') ';
! 		}
! 	}
! }
! 
  function AddStatement() {
  
! 	document.forms[0].op.value="AddStatement";
  	document.f.submit();
  }
--- 33,40 ----
  </form>
  
! <script language="JavaScript" type="text/javascript">
  function AddStatement() {
  
! 	document.forms['f'].op.value="AddStatement";
  	document.f.submit();
  }





More information about the Koha-cvs mailing list