author | Michael Krelin <hacker@klever.net> | 2006-09-26 19:21:57 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2006-09-26 19:21:57 (UTC) |
commit | c5ea6ff7abd6e376ae151c9724d24f6fe156766e (patch) (unidiff) | |
tree | 0df2e4ecf02f89c4b85d1950b5c6f4fd2f67f9bd /content/generated-content.js | |
parent | 5207247fdc837ae9de1d81db903f6cd92532595e (diff) | |
download | fireflix-0.0.zip fireflix-0.0.tar.gz fireflix-0.0.tar.bz2 |
Initial import into public repository0.0
git-svn-id: http://svn.klever.net/kin/fireflix/trunk@159 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | content/generated-content.js | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ | |||
1 | var generated = { | ||
2 | fireflix: null, | ||
3 | data: null, | ||
4 | |||
5 | init: function() { | ||
6 | this.fireflix = window.arguments[0]; | ||
7 | this.data = window.arguments[1]; | ||
8 | this.databox = document.getElementById('data'); | ||
9 | this.databox.value = this.data; | ||
10 | this.databox.select(); | ||
11 | }, | ||
12 | copy: function() { | ||
13 | var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"] | ||
14 | .getService(Components.interfaces.nsIClipboardHelper); | ||
15 | ch.copyString(this.data); | ||
16 | } | ||
17 | }; | ||