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-06-05 14:51:40 +0200
commit272ab432ddc4562237c7235f8e0ab8a11bad3d3d (patch)
treefbaddbe065bb8c4a60e820894c95c2ab7d8e1a2b /data/lib/bzpage.js
parent7b6eefcd506ec03e1db422ca6e1f4f1bb8420d1c (diff)
downloadbugzilla-triage-272ab432ddc4562237c7235f8e0ab8a11bad3d3d.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) {