Bugzilla – Attachment 33575 Details for
Bug 13258
Clicking the "show checkouts" button should return focus to the barcode field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13258 - Clicking the "show checkouts" button should return focus to the barcode field
Bug-13258---Clicking-the-show-checkouts-button-sho.patch (text/plain), 1.74 KB, created by
Owen Leonard
on 2014-11-14 15:56:15 UTC
(
hide
)
Description:
Bug 13258 - Clicking the "show checkouts" button should return focus to the barcode field
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2014-11-14 15:56:15 UTC
Size:
1.74 KB
patch
obsolete
>From bced0fb94fa7d7d4998d482f771f242dbeddee12 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 14 Nov 2014 10:49:18 -0500 >Subject: [PATCH] Bug 13258 - Clicking the "show checkouts" button should > return focus to the barcode field >Content-Type: text/plain; charset="utf-8" > >This patch udpates the checkouts JavaScript so that clicking the "show >checkouts" button or the "always show checkouts" checkbox returns focus >to the barcode field. This improves the checkout workflow by eliminating >a mouse click. > >To test, apply the patch and clear your browser cache. Check out to a >patron and confirm that focus is returned to the barcode field after >clicking the "show checkouts" button and the "always show checkouts" >checkbox. >--- > koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >index ece3ff2..8dc88e2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >@@ -1,6 +1,8 @@ > $(document).ready(function() { > $.ajaxSetup ({ cache: false }); > >+ var barcodefield = $("#barcode"); >+ > // Handle the select all/none links for checkouts table columns > $("#CheckAllRenewals").on("click",function(){ > $("#UncheckAllCheckins").click(); >@@ -132,9 +134,11 @@ $(document).ready(function() { > if ( this.checked && typeof issuesTable === 'undefined') { > $('#issues-table-load-now-button').click(); > } >+ barcodefield.focus(); > }); > $('#issues-table-load-now-button').click(function(){ > LoadIssuesTable(); >+ barcodefield.focus(); > return false; > }); > >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13258
:
33575
|
33580
|
33588