From 7ab25f44cf6cdf4d27dee16b318164fd7c581959 Mon Sep 17 00:00:00 2001 From: pines Date: Mon, 4 Jun 2007 14:52:31 +0000 Subject: [PATCH] avoid a bug where control+w for closing the tab will first pick a W-entry from the menulist (and thus change the default menu entry for the interface) git-svn-id: svn://svn.open-ils.org/ILS/trunk@7396 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/copy_browser.js | 2 ++ Open-ILS/xul/staff_client/server/cat/copy_browser.xul | 2 +- 2 files 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 70ee346e29..d82e1e1482 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.js @@ -877,6 +877,8 @@ cat.copy_browser.prototype = { 'command', function(ev) { //obj.show_my_libs(ev.target.value); + //alert('lib picker, command caught - ml = ' + ml + '\nml.value = ' + ml.value + '\n'); + if (document.getElementById('refresh_button')) document.getElementById('refresh_button').focus(); JSAN.use('util.file'); var file = new util.file('copy_browser_prefs.'+obj.data.server_unadorned); util.widgets.save_attributes(file, { 'lib_menu' : [ 'value' ], 'show_acns' : [ 'checked' ], 'show_acps' : [ 'checked' ] }); obj.refresh_list(); diff --git a/Open-ILS/xul/staff_client/server/cat/copy_browser.xul b/Open-ILS/xul/staff_client/server/cat/copy_browser.xul index a83a535aaa..447e3285ae 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.xul +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.xul @@ -130,7 +130,7 @@ -