From 0ba071ff068fbda2ae89adb376b0b12951cd4466 Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 25 Aug 2005 17:27:49 +0000 Subject: [PATCH] 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. --- koha-tmpl/intranet-tmpl/default/en/catalogue/MARCdetail.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/catalogue/MARCdetail.tmpl b/koha-tmpl/intranet-tmpl/default/en/catalogue/MARCdetail.tmpl index a9a6d99cfb..e7e22d0dd7 100644 --- a/koha-tmpl/intranet-tmpl/default/en/catalogue/MARCdetail.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/catalogue/MARCdetail.tmpl @@ -408,7 +408,7 @@ function Changefwk(FwkList) { window.location = "MARCdetail.pl?bib=&frameworkcode="+fwk; } function Addbiblio(op) { - var fwk = document.forms[0].Frameworks.options[document.forms[0].Frameworks.selectedIndex].value; + var fwk = document.forms['f'].Frameworks.options[document.forms['f'].Frameworks.selectedIndex].value; window.location = "acqui.simple/addbiblio.pl?oldbiblionumber=&frameworkcode="+fwk+"&op="+op; } -- 2.39.5