aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-07 01:50:24 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:46 +0200
commit5ec547dc04fa7f79a66a15ef61da79cafb725bb7 (patch)
tree81762bf0ae7be176d2257bb2a09c715ce0989fb3 /data
parent8e501abd49e5aeac70a84ceef96a72b5078df221 (diff)
downloadbugzilla-triage-5ec547dc04fa7f79a66a15ef61da79cafb725bb7.tar.gz
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
Diffstat (limited to 'data')
-rw-r--r--data/lib/bzpage.js2
-rw-r--r--data/lib/otherButtons.js4
-rw-r--r--data/tweaks/bug-page-mod.js4
3 files changed, 5 insertions, 5 deletions
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();
}
/**
diff --git a/data/tweaks/bug-page-mod.js b/data/tweaks/bug-page-mod.js
index b4a2244..3d5ee9b 100644
--- a/data/tweaks/bug-page-mod.js
+++ b/data/tweaks/bug-page-mod.js
@@ -72,10 +72,6 @@ function collectHistory(rpcURL) {
}
function tweakBugzilla(atts, cData) {
- // Add links for creating new bug in the same product
- // and same component
- addNewLinks();
-
viewAttachmentSource(atts);
// Mark up history along right hand edge