[open-ils-commits] r10674 -
trunk/Open-ILS/xul/staff_client/server/circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Sep 22 00:51:40 EDT 2008
Author: phasefx
Date: 2008-09-22 00:51:37 -0400 (Mon, 22 Sep 2008)
New Revision: 10674
Modified:
trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.js
trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.xul
Log:
fix disable/enable of clipboard action. I'm not sure when @disabled is preferable over .disabled, but in some cases it makes a difference
Modified: trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.js 2008-09-22 04:41:19 UTC (rev 10673)
+++ trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.js 2008-09-22 04:51:37 UTC (rev 10674)
@@ -36,7 +36,7 @@
'map_row_to_columns' : circ.util.std_map_row_to_columns(),
'on_select' : function() {
var sel = obj.list.retrieve_selection();
- document.getElementById('sel_clip').disabled = sel.length < 1;
+ obj.controller.view.sel_clip.setAttribute('disabled', sel.length < 1);
}
}
);
Modified: trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.xul 2008-09-22 04:41:19 UTC (rev 10673)
+++ trunk/Open-ILS/xul/staff_client/server/circ/in_house_use.xul 2008-09-22 04:51:37 UTC (rev 10674)
@@ -71,7 +71,7 @@
<messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
<commandset id="in_house_use_cmds">
- <command id="sel_clip" />
+ <command id="sel_clip" disabled="true" />
<command id="cmd_csv_to_clipboard" />
<command id="cmd_csv_to_printer" />
<command id="cmd_csv_to_file" />
@@ -110,7 +110,7 @@
accesskey="&staff.generic.list_actions.accesskey;"
type="menu" allowevents="true">
<menupopup id="list_actions_popup">
- <menuitem command="sel_clip" label="&staff.generic.list_actions.sel_clip.label;" accesskey="&staff.generic.list_actions.sel_clip.accesskey;" disabled="true" />
+ <menuitem command="sel_clip" label="&staff.generic.list_actions.sel_clip.label;" accesskey="&staff.generic.list_actions.sel_clip.accesskey;" />
<menuitem command="cmd_csv_to_printer" label="&staff.generic.list_actions.csv_to_printer.label;" accesskey="&staff.generic.list_actions.csv_to_printer.accesskey;" />
<menuitem command="cmd_csv_to_clipboard" label="&staff.generic.list_actions.csv_to_clipboard.label;" accesskey="&staff.generic.list_actions.csv_to_clipboard.accesskey;" />
<menuitem command="cmd_csv_to_file" label="&staff.generic.list_actions.csv_to_file.label;" accesskey="&staff.generic.list_actions.csv_to_file.accesskey;" />
More information about the open-ils-commits
mailing list