aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-31 01:39:46 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:48 +0200
commit3a7b19da58572396648df1ab215228d01129aede (patch)
treea4cdf30fe609e0c0336c089906995053c14f4475 /data/tweaks
parent16b78ccadf021cc9255016ab5dac31558d28dea4 (diff)
downloadbugzilla-triage-3a7b19da58572396648df1ab215228d01129aede.tar.gz
First draft of the flags handling for Mozilla bugzilla.
Will fix #103 (when reviewed)
Diffstat (limited to 'data/tweaks')
-rw-r--r--data/tweaks/bug-page-mod.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/data/tweaks/bug-page-mod.js b/data/tweaks/bug-page-mod.js
index d0f8095..9be8551 100644
--- a/data/tweaks/bug-page-mod.js
+++ b/data/tweaks/bug-page-mod.js
@@ -33,7 +33,7 @@
* ***** END LICENSE BLOCK *****
*/
-function TweakOnMessageHandler(msg, nextHandler) {
+function TweakOnMessageHandler(msg, nextHandlerList) {
switch (msg.cmd) {
case "Unhandled":
break;
@@ -42,7 +42,10 @@ function TweakOnMessageHandler(msg, nextHandler) {
break;
default:
if (nextHandler) {
- nextHandler(msg);
+ var nextHandler = nextHandlerList.splice(0, 1);
+ if (nextHandler[0]) {
+ nextHandler[0](msg, nextHandlerList);
+ }
}
else {
console.error("Error: unknown RPC call " + msg.toSource());