From e31c4337304ae6ebe819011ad8e1bd396acd0761 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 19 Apr 2012 22:37:56 -0400 Subject: [PATCH] fix double-click in Holdings Maintenance so that it won't attempt to spawn the Item Editor for non-items Signed-off-by: Jason Etheridge Signed-off-by: Jason Stephenson Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/xul/staff_client/server/cat/copy_browser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_browser.js b/Open-ILS/xul/staff_client/server/cat/copy_browser.js index 19fc6d7cfc..89313fbf40 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.js @@ -428,7 +428,9 @@ cat.copy_browser.prototype = { } ); - xulG.volume_item_creator( {'existing_copies':list, 'onrefresh' : function() { obj.refresh_list(); } } ); + if (list.length > 0) { + xulG.volume_item_creator( {'existing_copies':list, 'onrefresh' : function() { obj.refresh_list(); } } ); + } } catch(E) { obj.error.standard_unexpected_error_alert(document.getElementById('catStrings').getString('staff.cat.copy_browser.edit_items.error'),E); -- 2.43.2