aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-02 13:37:39 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-02 13:38:52 +0100
commit40a7136e0946f1f9d938fd65e0f416cd3455413f (patch)
tree27abaa6e91f4519196fce49b7d5922aa155ebf48 /lib
parent4eb99a9ead80166c27c49437b686ca6f2442da2d (diff)
downloadbugzilla-triage-40a7136e0946f1f9d938fd65e0f416cd3455413f.tar.gz
Add unknown PCI ID to the clipboard.
Diffstat (limited to 'lib')
-rw-r--r--lib/libbugzilla.js4
-rw-r--r--lib/main.js3
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js
index 600d193..bdcf8fb 100644
--- a/lib/libbugzilla.js
+++ b/lib/libbugzilla.js
@@ -204,6 +204,10 @@ exports.getClipboard = function getClipboard(cb) {
cb(clipboard.get());
};
+exports.setClipboard = function setClipboard(stuff) {
+ clipboard.set(stuff, "text");
+};
+
exports.getURL = function getURL(url, callback) {
Request({
url: url,
diff --git a/lib/main.js b/lib/main.js
index accaa0e..191391f 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -73,6 +73,9 @@ var messageHandler = exports.messageHandler = function messageHandler(worker, ms
worker.postMessage(new Message(msg.data, clipboard));
});
break;
+ case "SetClipboard":
+ libbz.setClipboard(msg.data);
+ break;
case "ChangeJSONURL":
libbz.changeJSONURL();
break;