diff options
Diffstat (limited to 'data/lib/bzpage.js')
-rw-r--r-- | data/lib/bzpage.js | 23 |
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) { |