From 59c772afbc5ed1141f8195c709d1c9c30206302a Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 3 Sep 2009 08:31:47 +0000 Subject: [PATCH] allow us to switch to the alt item status view even with no items selected or scanned. Put focus in scanbox after toggle. git-svn-id: svn://svn.open-ils.org/ILS/trunk@13955 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/copy_status.js | 6 +++--- Open-ILS/xul/staff_client/server/circ/copy_status.xul | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/copy_status.js b/Open-ILS/xul/staff_client/server/circ/copy_status.js index fe8dec8a33..53fc641d18 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_status.js +++ b/Open-ILS/xul/staff_client/server/circ/copy_status.js @@ -54,7 +54,6 @@ circ.copy_status.prototype = { ); obj.error.sdump('D_TRACE','circ/copy_status: selection list = ' + js2JSON(obj.selection_list) ); if (obj.selection_list.length == 0) { - obj.controller.view.cmd_alt_view.setAttribute('disabled','true'); obj.controller.view.sel_checkin.setAttribute('disabled','true'); obj.controller.view.cmd_replace_barcode.setAttribute('disabled','true'); obj.controller.view.sel_edit.setAttribute('disabled','true'); @@ -78,7 +77,6 @@ circ.copy_status.prototype = { obj.controller.view.cmd_mark_library.setAttribute('disabled','true'); obj.controller.view.cmd_transfer_volume.setAttribute('disabled','true'); } else { - obj.controller.view.cmd_alt_view.setAttribute('disabled','false'); obj.controller.view.sel_checkin.setAttribute('disabled','false'); obj.controller.view.cmd_replace_barcode.setAttribute('disabled','false'); obj.controller.view.sel_edit.setAttribute('disabled','false'); @@ -145,13 +143,15 @@ circ.copy_status.prototype = { n.setAttribute('toggle','0'); n.setAttribute('label', document.getElementById("circStrings").getString('staff.circ.copy_status.alt_view.label')); n.setAttribute('accesskey', document.getElementById("circStrings").getString('staff.circ.copy_status.alt_view.accesskey')); - //document.getElementById('results').focus(); + obj.controller.view.copy_status_barcode_entry_textbox.focus(); } else { document.getElementById('deck').selectedIndex = 1; n.setAttribute('toggle','1'); n.setAttribute('label', document.getElementById("circStrings").getString('staff.circ.copy_status.list_view.label')); n.setAttribute('accesskey', document.getElementById("circStrings").getString('staff.circ.copy_status.list_view.accesskey')); netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); + obj.controller.view.copy_status_barcode_entry_textbox.focus(); + if (obj.selection_list.length == 0) return; var f = obj.browser.get_content(); xulG.barcode = obj.selection_list[0].barcode; f.xulG = xulG; diff --git a/Open-ILS/xul/staff_client/server/circ/copy_status.xul b/Open-ILS/xul/staff_client/server/circ/copy_status.xul index 5d9d2afc5b..8d382e16ea 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_status.xul +++ b/Open-ILS/xul/staff_client/server/circ/copy_status.xul @@ -101,7 +101,7 @@ - + -- 2.11.0