aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-29 01:22:18 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-04-29 01:32:27 +0200
commite3989a9404d19fb5164b39f7f6c78e64cc85b137 (patch)
treeb2ceedb4a43b2e85a4d083933a6ca5678b32236f /data/lib/bzpage.js
parentaf9a8239914fb783ddd41a9dc571bd5fb2126050 (diff)
downloadbugzilla-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 'data/lib/bzpage.js')
-rw-r--r--data/lib/bzpage.js23
1 files changed, 14 insertions, 9 deletions
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js
index 9e65794..02c8e3c 100644
--- a/data/lib/bzpage.js
+++ b/data/lib/bzpage.js
@@ -43,8 +43,8 @@ onMessage = function onMessage(msg) {
case "Unhandled":
break;
default:
- if (RHOnMessageHandler) {
- RHOnMessageHandler(msg);
+ if (TweakOnMessageHandler) {
+ TweakOnMessageHandler(msg, RHOnMessageHandler);
}
else {
console.error("Error: unknown RPC call " + msg.toSource());
@@ -55,7 +55,7 @@ onMessage = function onMessage(msg) {
/**
* @param cmd
* Object with all commands to be executed
- *
+ *
* PROBLEM: according to
* https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference\
* /Statements/for...in there is no guaranteed order of execution of commands
@@ -73,7 +73,7 @@ function executeCommand(cmdObj) {
/**
* Actual execution function
- *
+ *
* @param cmdLabel
* String with the name of the command to be executed
* @param cmdParams
@@ -184,7 +184,7 @@ function centralCommandDispatch (cmdLabel, cmdParams) {
/**
* Change assignee of the bug
- *
+ *
* @param newAssignee
* String with the email address of new assigneeAElement or 'default'
* if the component's default assignee should be used. Value null
@@ -228,7 +228,7 @@ function changeAssignee (newAssignee) {
/**
* Adds new option to the 'comment_action' scroll down box
- *
+ *
* @param pkg
* String package name
* @param cmd
@@ -312,8 +312,13 @@ function generateButtons (pkgs, kNodes) {
// constantData etc.
// are finally defined and available.
if (RHBZinit) {
+ console.log("call RHBZinit!");
RHBZinit();
}
+
+ if (tweakBugzilla) {
+ tweakBugzilla(document, constantData);
+ }
}
function setConfigurationButton () {
@@ -333,7 +338,7 @@ function setConfigurationButton () {
/**
* dd
- *
+ *
* @return Element with the href attribute containng the information
*/
function getOptionTableCell(tableId, label) {
@@ -356,13 +361,13 @@ function getOptionTableCell(tableId, label) {
/**
* Parse the row with the attachment
- *
+ *
* @param DOM
* element to be parsed
* @return array with string name of the attachment, integer its id number,
* string of MIME type, integer of size in kilobytes, and the whole
* element itself
- *
+ *
* TODO error handling is missing ... it's bleee
*/
function parseAttachmentLine(inElem) {