From c5ea6ff7abd6e376ae151c9724d24f6fe156766e Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Tue, 26 Sep 2006 19:21:57 +0000 Subject: Initial import into public repository git-svn-id: http://svn.klever.net/kin/fireflix/trunk@159 fe716a7a-6dde-0310-88d9-d003556173a8 --- (limited to 'content/generated-content.js') diff --git a/content/generated-content.js b/content/generated-content.js new file mode 100644 index 0000000..0ad08bb --- a/dev/null +++ b/content/generated-content.js @@ -0,0 +1,17 @@ +var generated = { + fireflix: null, + data: null, + + init: function() { + this.fireflix = window.arguments[0]; + this.data = window.arguments[1]; + this.databox = document.getElementById('data'); + this.databox.value = this.data; + this.databox.select(); + }, + copy: function() { + var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"] + .getService(Components.interfaces.nsIClipboardHelper); + ch.copyString(this.data); + } +}; -- cgit v0.9.0.2