From c4016bd42460e9e361a47ddb170141cf569b47fe Mon Sep 17 00:00:00 2001 From: tipaul Date: Thu, 4 Sep 2003 16:42:32 +0000 Subject: [PATCH] adding javascript function to focus on 1st field for issues / returns. Thus, librarian don't need manual mouse focus & can scan barcode immediatly. --- .../intranet-tmpl/default/en/includes/circulation-top.inc | 5 ++++- .../intranet-tmpl/default/fr/includes/circulation-top.inc | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/includes/circulation-top.inc b/koha-tmpl/intranet-tmpl/default/en/includes/circulation-top.inc index 68e0298c7c..db28c755c9 100644 --- a/koha-tmpl/intranet-tmpl/default/en/includes/circulation-top.inc +++ b/koha-tmpl/intranet-tmpl/default/en/includes/circulation-top.inc @@ -10,6 +10,9 @@ function openWindow(targeturl, windowname) { newwin = window.open(targeturl,windowname,"height=480,width=640,scrollbars,resizable") } +function focusOnFirst (){ +document.forms[0].elements[0].focus(); +} // end hiding --> @@ -33,7 +36,7 @@ a.circulation:hover { +marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 onLoad="javascript:focusOnFirst()"> diff --git a/koha-tmpl/intranet-tmpl/default/fr/includes/circulation-top.inc b/koha-tmpl/intranet-tmpl/default/fr/includes/circulation-top.inc index e95bff5726..f0377b5c5d 100644 --- a/koha-tmpl/intranet-tmpl/default/fr/includes/circulation-top.inc +++ b/koha-tmpl/intranet-tmpl/default/fr/includes/circulation-top.inc @@ -10,6 +10,10 @@ function openWindow(targeturl, windowname) { newwin = window.open(targeturl,windowname,"height=480,width=640,scrollbars,resizable") } +function focusOnFirst (){ +document.forms[0].elements[0].focus(); +} + // end hiding --> @@ -33,7 +37,7 @@ a.circulation:hover { +marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 onLoad="javascript:focusOnFirst()">
-- 2.39.5