Put old clipboard alert message into statusbar collab/phasefx/clipboard_statusbar
authorJason Etheridge <jason@esilibrary.com>
Tue, 18 Jun 2013 15:43:37 +0000 (11:43 -0400)
committerJason Etheridge <jason@esilibrary.com>
Tue, 18 Jun 2013 15:43:37 +0000 (11:43 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
Open-ILS/xul/staff_client/chrome/content/util/list.js

index fabe682..482587c 100644 (file)
                 .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]));    
index 1ddfb0f..40be9e1 100644 (file)
@@ -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);