[open-ils-commits] r13955 - trunk/Open-ILS/xul/staff_client/server/circ (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Sep 3 04:31:52 EDT 2009
Author: phasefx
Date: 2009-09-03 04:31:47 -0400 (Thu, 03 Sep 2009)
New Revision: 13955
Modified:
trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js
trunk/Open-ILS/xul/staff_client/server/circ/copy_status.xul
Log:
allow us to switch to the alt item status view even with no items selected or scanned. Put focus in scanbox after toggle.
Modified: trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js 2009-09-03 08:24:36 UTC (rev 13954)
+++ trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js 2009-09-03 08:31:47 UTC (rev 13955)
@@ -54,7 +54,6 @@
);
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 @@
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 @@
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;
Modified: trunk/Open-ILS/xul/staff_client/server/circ/copy_status.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/copy_status.xul 2009-09-03 08:24:36 UTC (rev 13954)
+++ trunk/Open-ILS/xul/staff_client/server/circ/copy_status.xul 2009-09-03 08:31:47 UTC (rev 13955)
@@ -101,7 +101,7 @@
<command id="cmd_copy_status_submit_barcode" />
<command id="cmd_copy_status_upload_file" />
<command id="cmd_copy_status_print" />
- <command id="cmd_alt_view" disabled="true" />
+ <command id="cmd_alt_view" />
<command id="save_columns" />
<command id="sel_copy_details" disabled="true"/>
<command id="sel_mark_items_damaged" disabled="true"/>
More information about the open-ils-commits
mailing list