diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-29 01:22:18 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-04-29 01:32:27 +0200 |
commit | e3989a9404d19fb5164b39f7f6c78e64cc85b137 (patch) | |
tree | b2ceedb4a43b2e85a4d083933a6ca5678b32236f /lib/main.js | |
parent | af9a8239914fb783ddd41a9dc571bd5fb2126050 (diff) | |
download | bugzilla-triage-e3989a9404d19fb5164b39f7f6c78e64cc85b137.tar.gz |
All XML-RPC calls are rewritten as JSON-RPC ones.
* also MakeJSONRPCall is a functional call now
* reorganization for dealing with the history.
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/main.js b/lib/main.js index c7fe2fd..302dda8 100644 --- a/lib/main.js +++ b/lib/main.js @@ -99,6 +99,15 @@ var messageHandler = exports.messageHandler = function messageHandler( ret)); }); break; + case "MakeJSONRPCall": + // url, login, method, params, callback + libbz + .makeJSONRPCCall(msg.data.url, msg.data.method, + msg.data.params, function(ret) { + worker.postMessage(new Message(msg.data.callRPC, + ret)); + }); + break; case "GetURL": libbz.getURL(msg.data.url, function(stuff) { @@ -123,7 +132,7 @@ var contentScriptLibraries = [ self.data.url("lib/util.js"), self.data.url("lib/jumpNextBug.js"), self.data.url("lib/queries.js"), - self.data.url("lib/preprocessDuplicates.js"), + self.data.url("tweaks/preprocessDuplicates.js"), self.data.url("tweaks/viewSource.js"), self.data.url("lib/color.js"), self.data.url("tweaks/addNewLinks.js"), |