aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-02-14 17:51:53 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-02-14 17:57:45 +0100
commit04657077ba12e8f23feaa0c3787b590c44446056 (patch)
treeebe206422871e71b142985786a9472ff447be0cd /lib
parent838c1d4abd72bd87dcc8ee41310ca3a8af498c96 (diff)
downloadbugzilla-triage-04657077ba12e8f23feaa0c3787b590c44446056.tar.gz
Basic functionality working. Switching to this bug for my day-to-day work.
Diffstat (limited to 'lib')
-rw-r--r--lib/main.js12
-rw-r--r--lib/util.js2
2 files changed, 11 insertions, 3 deletions
diff --git a/lib/main.js b/lib/main.js
index abdc758..be4ff8d 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -115,8 +115,8 @@ var contentScriptLibraries = {
"bugzilla.redhat.com": [
self.data.url("util.js"),
self.data.url("color.js"),
+ self.data.url("rhbzpage.js"),
self.data.url("bzpage.js")
-// self.data.url("rhbzpage.js")
]
};
@@ -136,4 +136,12 @@ libbz.initialize(libbz.config, function () {
});
});
-tabs.open("https://bugzilla.redhat.com/show_bug.cgi?id=595017");
+pageMod.PageMod({
+ include: [
+ "https://bugzilla.redhat.com/process_bug.cgi"
+ ],
+ contentScriptWhen: 'ready',
+ contentScriptFile: self.data.url("skip-bug.js")
+});
+
+//tabs.open("https://bugzilla.redhat.com/show_bug.cgi?id=595017");
diff --git a/lib/util.js b/lib/util.js
index 8556951..3532203 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -23,7 +23,7 @@ function getParamsFromURL (url, base) {
var paramsArr = url.path.split("?");
if (paramsArr.length === 1) {
return {};
- }
+ }
// get convert URL parameters to an Object
var params = {}, s = [];