From 6a240289232dac9f2d5c1b81e9603b728407a55f Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 25 Aug 2005 17:34:15 +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/search.marc/search.tmpl | 4 ++-- koha-tmpl/intranet-tmpl/default/en/search.marc/suggest.tmpl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl b/koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl index 724af32a95..273b8816af 100644 --- a/koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl @@ -181,12 +181,12 @@ document.f.sql.value=""; function AddStatement() { - document.forms[0].op.value="AddStatement"; + document.forms['f'].op.value="AddStatement"; document.f.submit(); } function Dopop(link,i) { - var searchstring=document.forms[0].value[i].value; + var searchstring=document.forms['f'].value[i].value; newin=window.open(link+'&search='+searchstring,"popup",'width=700,height=550,toolbar=false,scrollbars=yes'); } diff --git a/koha-tmpl/intranet-tmpl/default/en/search.marc/suggest.tmpl b/koha-tmpl/intranet-tmpl/default/en/search.marc/suggest.tmpl index 7ff4f29a76..ea5be295e8 100644 --- a/koha-tmpl/intranet-tmpl/default/en/search.marc/suggest.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/search.marc/suggest.tmpl @@ -39,9 +39,9 @@