From 3237f808258971db8f2b5b36b2431a5bbb4e5f5f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 3 Jan 2017 15:08:32 +0000 Subject: [PATCH] Bug 17812 - Return focus to barcode field after toggling on-site checkouts This patch changes the behavior of the checkout form so that after checking the "on-site checkouts" box the cursor focus is automatically moved to the barcode field. To test, apply the patch and enable the OnSiteCheckouts system preference. - Open any patron account in circulation. - Expand the "Checkout settings" panel. - Click the "On-site checkout" label or checkbox. - Confirm that the focus has moved to the barcode field. --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 1444f2d..d5a0809 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -108,6 +108,7 @@ $(document).ready(function() { toggle_onsite_checkout(); $("#onsite_checkout").click(function(){ toggle_onsite_checkout(); + $("#barcode").focus(); }); $("#suspend_until").datepicker({ -- 2.1.4