From: phasefx Date: Sat, 15 Mar 2008 05:46:21 +0000 (+0000) Subject: Sometimes the main window will lose focus and get lowered after clipboard actions... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ea3c9ff726ee1df3b25285d50f98a5afedf87158;p=Evergreen.git Sometimes the main window will lose focus and get lowered after clipboard actions... this will make sure the window stays raised (despite the action being called .focus), but we still need to figure out focus git-svn-id: svn://svn.open-ils.org/ILS/trunk@9039 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/list.js b/Open-ILS/xul/staff_client/chrome/content/util/list.js index 8bdba572e5..fbe0dd570e 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -1157,6 +1157,7 @@ util.list.prototype = { data.list_clipboard = dump; data.stash('list_clipboard'); JSAN.use('util.window'); var win = new util.window(); win.open(urls.XUL_LIST_CLIPBOARD,'list_clipboard','chrome,resizable,modal'); + window.focus(); // sometimes the main window will lower after a clipboard action } catch(E) { this.error.standard_unexpected_error_alert('clipboard',E); }