diff options
author | Matěj Cepl <mcepl@redhat.com> | 2013-12-12 22:35:58 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2013-12-12 22:40:32 +0100 |
commit | bb4766110c286efafe9efa6b9658ea7065832062 (patch) | |
tree | b52cc4d602e5f41b542c611d3a1165a6ca4cc3fd /data | |
parent | 4d7f05488f1bcd37ef128b5464975d58a98a9d79 (diff) | |
download | bugzilla-triage-bb4766110c286efafe9efa6b9658ea7065832062.tar.gz |
Fix sending bugs upstream, adding external bug, and no munching on <title>1.9
Specifically:
* add Evolution to data/newUpstreamBug.json
* fix new (and a way better!) ID of the inputBox for the adding
external bug ID
* remove misjudged attempt to remove Bug from //head/title
Diffstat (limited to 'data')
-rw-r--r-- | data/lib/otherButtons.js | 5 | ||||
-rw-r--r-- | data/newUpstreamBug.json | 8 | ||||
-rw-r--r-- | data/rhlib/rhbzpage.js | 8 |
3 files changed, 13 insertions, 8 deletions
diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js index 80d9274..48d3505 100644 --- a/data/lib/otherButtons.js +++ b/data/lib/otherButtons.js @@ -150,11 +150,6 @@ function setBranding(things) { .toString() + " none"; - // Remove "Bug" from the title of the bug page, so we have more space with - // plenty of tabs - var titleElem = document.getElementsByTagName("title")[0]; - - titleElem.textContent = titleElem.textContent.slice(4); var bodyTitleParent = document .getElementById("summary_alias_container").parentNode; var bodyTitleElem = bodyTitleParent.getElementsByTagName("b")[0]; diff --git a/data/newUpstreamBug.json b/data/newUpstreamBug.json index f3aba73..9fe7883 100644 --- a/data/newUpstreamBug.json +++ b/data/newUpstreamBug.json @@ -26,5 +26,13 @@ { "regexp": "empathy.*", "addr": "https://bugzilla.gnome.org/enter_bug.cgi?product=empathy" + }, + { + "regexp": "evolution.*", + "addr": "https://bugzilla.gnome.org/enter_bug.cgi?product=evolution" + }, + { + "regexp": "gnome.*", + "addr": "https://bugzilla.gnome.org/enter_bug.cgi" } ] diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js index fc46d23..c1bca62 100644 --- a/data/rhlib/rhbzpage.js +++ b/data/rhlib/rhbzpage.js @@ -168,8 +168,11 @@ function sendBugUpstream(thgs) { return; } if (localThings) { + myDebug('sendBugUpstream: creating new bug for component ' + + getComponent()); var admitMsg = "(originally filed as " + window.location.href + ")\n\n"; var urlStr = filterByRegexp(constantData.newUpstreamBug, getComponent()); + myDebug('sendBugUpstream: urlStr = ' + urlStr); if (!urlStr) { return null; } @@ -337,7 +340,7 @@ function analyzeXorgLog(attachID, backMsg) { */ function addExternalBug() { // that's a bad id, if there is a one. :) - var inputBox = document.getElementById("inputbox"); + var inputBox = document.getElementById("external_bug_id"); var externalBugID = 0; var wholeURL = ""; @@ -438,8 +441,7 @@ function RHBZinit(things) { // inheritance ... call superobject's constructor var AbrtRE = new RegExp("^\\s*\\[abrt\\]"); var btSnippet = ""; - sendBugUpstream(things); // FIXME this is not a real call, - // just initializing static variable + sendBugUpstream(things); var chipMagicInterestingLine = ""; |