From ec1d6396ad5457a06af6ab7a5293b6922a5708c6 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sat, 7 May 2011 01:50:24 +0200 Subject: Make inline history (if it worked, that is ;)) configurable. * JSON must contain configData.verboseInlineHistory * enable it for mozilla JSON per default * also move call of addNewLinks to bzpage.js --- data/lib/bzpage.js | 2 +- data/lib/otherButtons.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'data/lib') diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js index 35f993c..10c71fb 100644 --- a/data/lib/bzpage.js +++ b/data/lib/bzpage.js @@ -364,7 +364,7 @@ function completeInit() { RHBZinit(attachments); } - if (tweakBugzilla) { + if (tweakBugzilla && config.verboseInlineHistory) { tweakBugzilla(attachments, constantData); } } diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js index 6fa48e0..f9346d8 100644 --- a/data/lib/otherButtons.js +++ b/data/lib/otherButtons.js @@ -123,6 +123,10 @@ function addingEmbelishments(list) { fillInChipMagic(list[0][1]); } } + + // Add links for creating new bug in the same product + // and same component + addNewLinks(); } /** -- cgit