aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2009-12-10 19:36:03 +0100
committerMatěj Cepl <mcepl@redhat.com>2009-12-10 19:36:03 +0100
commitc0e126a54c2d9ce60652bde7768a74bb5cd79a15 (patch)
treed5364f331847a891efa22aaed133f8c6e65fa4e8
parentf1b20e1a9ad73c9f513964193e6596d36ededb11 (diff)
downloadbugzilla-triage-c0e126a54c2d9ce60652bde7768a74bb5cd79a15.tar.gz
Mostly working, some level of dejQuerization happened.
Mass-deduplication is functional, still doesn't reload page on the result.
-rw-r--r--bugzillaBugTriage.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index 6233db1..7caadd9 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -34,9 +34,10 @@ var badMIMEArray = ["application/octet-stream","text/x-log","undefined"];
var jsonDataURL = myConfig.JSONURL ? myConfig.JSONURL :
"http://mcepl.fedorapeople.org/scripts/BugZappers_data.json";
var PCIIDsURL = "http://mcepl.fedorapeople.org/scripts/drm_pciids.json";
-var abrtQueryURL = "https://bugzilla.redhat.com/buglist.cgi"+
- "?cmdtype=runnamed&namedcmd=all%20NEW%20abrt%20crashes";
+var abrtQueryURL = "https://bugzilla.redhat.com/buglist.cgi?"+
+ "cmdtype=dorem&remaction=run&namedcmd=all%20NEW%20abrt%20crashes&sharer_id=74116";
//var debug = GM_getValue("debug",false);
+
var reqCounter = 0;
var msgStrs = {};
@@ -1401,27 +1402,26 @@ function bzPage(doc) {
this.btSnippet = "";
var bugTitle = $("#short_desc_nonedit_display", this.doc).text();
- if (AbrtRE.test(bugTitle) &&
- !(/btparsed/.test($("#cf_devel_whiteboard",this.doc)))) {
+ if (AbrtRE.test(bugTitle)) {
+
+ var notedLabel = $("label[for='newcc']", this.doc);
+ notedLabel.replaceWith(notedLabel.children());
$(".bz_alias_short_desc_container:first", this.doc).
- append("\u00A0<a href=''>Abrt bugs</a>").click(function() {
- that.doc.location = abrtQueryURL;
- });
- if (!this.hasKeyword("Triaged")) {
+ append("\u00A0<a accesskey='a' href='"+abrtQueryURL+"'>Abrt bugs</a>");
+
+ if (!(this.hasKeyword("Triaged") ||
+ /btparsed/.test($("#cf_devel_whiteboard",this.doc).val()))) {
var btAttachments = this.attachments.filter(function (att,idx,arr) {
return (/backtrace/.test(att[0]));
});
// TODO we need to go through all backtrace attachments, but
// just the first one will do for now, we would need to do async parsing
- that = this;
btAttachments.forEach(function (x) {
attURL = "https://bugzilla.redhat.com/attachment.cgi?id=" + x[1];
console.log("attURL = " + attURL);
- console.log("btSnippet = " + that.btSnippet);
if (!that.btSnippet) {
var btRaw = $.get(attURL,function (ret) {
that.btSnippet = that.parseBacktrace(ret);
- console.log("btSnippet = " + that.btSnippet.length);
if (that.btSnippet) {
that.addTextToTextBox("comment",that.btSnippet);
that.addTextToTextBox("cf_devel_whiteboard","btparsed");