From 8a5c57435f3cf71cf5a70efb91c8b3ce75aebebf Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 22 Sep 2008 04:51:37 +0000 Subject: [PATCH] fix disable/enable of clipboard action. I'm not sure when @disabled is preferable over .disabled, but in some cases it makes a difference 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 | 2 +- Open-ILS/xul/staff_client/server/circ/in_house_use.xul | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/in_house_use.js b/Open-ILS/xul/staff_client/server/circ/in_house_use.js index 5a008d27a0..919c105607 100644 --- a/Open-ILS/xul/staff_client/server/circ/in_house_use.js +++ b/Open-ILS/xul/staff_client/server/circ/in_house_use.js @@ -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); } } ); diff --git a/Open-ILS/xul/staff_client/server/circ/in_house_use.xul b/Open-ILS/xul/staff_client/server/circ/in_house_use.xul index 8f1fccd54a..5202c82d5f 100644 --- a/Open-ILS/xul/staff_client/server/circ/in_house_use.xul +++ b/Open-ILS/xul/staff_client/server/circ/in_house_use.xul @@ -71,7 +71,7 @@ - + @@ -110,7 +110,7 @@ accesskey="&staff.generic.list_actions.accesskey;" type="menu" allowevents="true"> - + -- 2.43.2