.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]));
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);