Bug 13258 - Clicking the "show checkouts" button should return focus to the barcode field
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. Patch behaves as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works as described, no problems found. Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
17e6a8b652
commit
94687cf57a
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue