aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2013-08-05 00:56:51 +0200
committerMatěj Cepl <mcepl@redhat.com>2013-08-05 00:56:51 +0200
commit6d8f3f27c95b447f670917df5f496c97c8fabd62 (patch)
tree77f1c8b3bfa00568126f9ff4c151e60c1617fb6b
parent14b767a4a3fb14457f37a34b53a454fc72fd0994 (diff)
downloadbugzilla-triage-6d8f3f27c95b447f670917df5f496c97c8fabd62.tar.gz
Use document.location.pathname instead of .path.
-rw-r--r--.be/6e705c50-2e25-43dd-9c06-90e436c2c636/bugs/b1320128-9ce0-4b75-94db-125c0d624177/values2
-rw-r--r--data/lib/skip-bug.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/.be/6e705c50-2e25-43dd-9c06-90e436c2c636/bugs/b1320128-9ce0-4b75-94db-125c0d624177/values b/.be/6e705c50-2e25-43dd-9c06-90e436c2c636/bugs/b1320128-9ce0-4b75-94db-125c0d624177/values
index 3744f36..4890a1d 100644
--- a/.be/6e705c50-2e25-43dd-9c06-90e436c2c636/bugs/b1320128-9ce0-4b75-94db-125c0d624177/values
+++ b/.be/6e705c50-2e25-43dd-9c06-90e436c2c636/bugs/b1320128-9ce0-4b75-94db-125c0d624177/values
@@ -26,7 +26,7 @@
- "status": "open",
+ "status": "fixed",
diff --git a/data/lib/skip-bug.js b/data/lib/skip-bug.js
index 5597b35..bc6812c 100644
--- a/data/lib/skip-bug.js
+++ b/data/lib/skip-bug.js
@@ -8,7 +8,7 @@ function reloadPage() {
var REArr = new RegExp('[bB]ug\\s+([0-9]+)')
.exec(titleElems[0].textContent);
if (REArr) {
- var URLArr = document.location.path.split("/");
+ var URLArr = document.location.pathname.split("/");
document.location = URLArr.slice(0, URLArr.length - 1).join("/")
+ "/show_bug.cgi?id=" + REArr[1];
}