aboutsummaryrefslogtreecommitdiffstats
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-05-07 01:50:24 +0200
commitec1d6396ad5457a06af6ab7a5293b6922a5708c6 (patch)
treec57832664faa652b5bcf97599eb1cb3b41bf238d
parent9d6c70c656052e1c4f7df7a255c4f493d56f08c8 (diff)
downloadbugzilla-triage-ec1d6396ad5457a06af6ab7a5293b6922a5708c6.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
-rw-r--r--data/lib/bzpage.js2
-rw-r--r--data/lib/otherButtons.js4
-rw-r--r--data/tweaks/bug-page-mod.js4
-rw-r--r--jsons/Config_mozilla.json1
4 files changed, 6 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 688d3f9..2b29dc0 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
diff --git a/jsons/Config_mozilla.json b/jsons/Config_mozilla.json
index 302bda9..10de144 100644
--- a/jsons/Config_mozilla.json
+++ b/jsons/Config_mozilla.json
@@ -72,6 +72,7 @@
"queryButton": true,
"upstreamButton": false,
"parseAbrtBacktraces": true,
+ "verboseInlineHistory": true,
"submitsLogging": false,
"suspiciousComponents": [