diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-09-07 16:59:08 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-09-07 17:01:48 +0200 |
commit | b6e4ec64e4d5e4657bbb4e70e5ae19fa6d869a70 (patch) | |
tree | cc5b3cfb789f9858e6b4ce7c8cececbdcd7e1e55 | |
parent | 1cadc51cc0135b9c4cf338e09c7874e1f49bf61b (diff) | |
download | bugzilla-triage-1.4.7.tar.gz |
Make skipping unimportant pages work again.1.4.7
Skript generating RE was putting too many \/ into it.
New release.
Fixes #115.
-rw-r--r-- | data/lib/skip-bug.js | 5 | ||||
-rw-r--r-- | lib/libbugzilla.js | 2 | ||||
-rw-r--r-- | lib/main.js | 2 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | update.rdf | 17 |
5 files changed, 19 insertions, 9 deletions
diff --git a/data/lib/skip-bug.js b/data/lib/skip-bug.js index c909a3e..389eb54 100644 --- a/data/lib/skip-bug.js +++ b/data/lib/skip-bug.js @@ -3,15 +3,12 @@ // "use strict"; function reloadPage() { - var stemURL = 'https://HOSTNAME/show_bug.cgi?id='; var titleElems = document.getElementsByTagName('title'); if (titleElems) { var REArr = new RegExp('[bB]ug\\s+([0-9]+)') .exec(titleElems[0].textContent); - var hostname = document.location.hostname; if (REArr) { - document.location = stemURL.replace('HOSTNAME', hostname) - + REArr[1]; + document.location = '/show_bug.cgi?id=' + REArr[1]; } } } diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js index c2c0828..53363a4 100644 --- a/lib/libbugzilla.js +++ b/lib/libbugzilla.js @@ -426,7 +426,7 @@ function processConfigJSON(rawJSON) { config.configData.skipMatchStr = origConstData.matches. map(function(x) { return x.replace("show_bug.cgi\\?id=.*", - "\\/(process_bug|post_bug|attachment).cgi$"); + "(process_bug|post_bug|attachment).cgi$"); }); } else { diff --git a/lib/main.js b/lib/main.js index 6561cba..d204b95 100644 --- a/lib/main.js +++ b/lib/main.js @@ -140,8 +140,6 @@ libbz.initialize(function(config) { }); }); - - //Allow toggling of CC event displays using a context menu entry contextMenu.Item({ label : "Toggle CC History", diff --git a/package.json b/package.json index 82916f9..3a10c4f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "description": "Additional buttons and other function helping in the triage on bugzilla", "author": "Matej Cepl (http://matej.ceplovi.cz)", "license": "MIT/X11 (http://opensource.org/licenses/mit-license.php) and MPL", - "version": "1.4.6", + "version": "1.4.7", "contributors": [ "Ehsan Akhgari (http://ehsanakhgari.org/) <ehsan@mozilla.com>", "Johnathan Nightingale (http://johnath.com) <johnath@mozilla.com>", @@ -142,7 +142,7 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#"> </em:targetApplication> </Description> </li> - <li> + <li> <Description> <em:version>1.4.6</em:version> <em:targetApplication> @@ -157,6 +157,21 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#"> </em:targetApplication> </Description> </li> + <li> + <Description> + <em:version>1.4.7</em:version> + <em:targetApplication> + <Description> + <em:id> + {ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> + <em:minVersion>4.0b7</em:minVersion> + <em:maxVersion>9.0a1</em:maxVersion> + <em:updateLink> + https://fedorahosted.org/released/bugzilla-triage-scripts/bugzilla-triage-1.4.7.xpi</em:updateLink> + </Description> + </em:targetApplication> + </Description> + </li> </Seq> </em:updates> </Description> |