From: Jason Etheridge Date: Tue, 18 Jun 2013 15:43:37 +0000 (-0400) Subject: Put old clipboard alert message into statusbar X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8aaff283c1b7e74eefa35ab44e1e946ea65b1a37;p=working%2FEvergreen.git Put old clipboard alert message into statusbar Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js index fabe682c72..482587c973 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js @@ -576,7 +576,15 @@ .getService(Components.interfaces.nsIClipboardHelper); gClipboardHelper.copyString(text); var Strings = $('offlineStrings') || $('commonStrings'); - // alert(Strings.getFormattedString('openils.global_util.clipboard', [text])); + if (xulG && xulG.set_statusbar) { + xulG.set_statusbar( + 5, + Strings.getFormattedString( + 'openils.global_util.clipboard', + [text] + ) + ); + } } catch(E) { var Strings = $('offlineStrings') || $('commonStrings'); alert(Strings.getFormattedString('openils.global_util.clipboard.error', [E])); 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 1ddfb0f0a3..40be9e18cf 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -1685,7 +1685,13 @@ util.list.prototype = { obj.data.stash_retrieve(); obj.data.list_clipboard = dump; obj.data.stash('list_clipboard'); JSAN.use('util.window'); var win = new util.window(); - win.open(urls.XUL_LIST_CLIPBOARD,'list_clipboard','chrome,resizable,modal'); + win.open( + urls.XUL_LIST_CLIPBOARD, + 'list_clipboard', + 'chrome,resizable,modal', { + 'set_statusbar' : xulG.set_statusbar + } + ); window.focus(); // sometimes the main window will lower after a clipboard action } catch(E) { this.error.standard_unexpected_error_alert('clipboard',E);