fix disable/enable of clipboard action. I'm not sure when @disabled is preferable...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Sep 2008 04:51:37 +0000 (04:51 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Sep 2008 04:51:37 +0000 (04:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10674 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/in_house_use.js
Open-ILS/xul/staff_client/server/circ/in_house_use.xul

index 5a008d2..919c105 100644 (file)
@@ -36,7 +36,7 @@ circ.in_house_use.prototype = {
                                '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);
                                }
                        }
                );
index 8f1fccd..5202c82 100644 (file)
@@ -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" />
             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;" />