aboutsummaryrefslogtreecommitdiffstats
path: root/bugzillaBugTriage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-02-01 14:46:35 +0100
committerMatěj Cepl <mcepl@redhat.com>2010-02-01 14:46:35 +0100
commit46fcda1ef759ff604fa8c1c40626454dad820e40 (patch)
tree72e5a2d36232f17a59d7c02e932e152802799cc1 /bugzillaBugTriage.js
parent10d9303536c8a0a8c4f22d15e047d40de62fa091 (diff)
downloadbugzilla-triage-46fcda1ef759ff604fa8c1c40626454dad820e40.tar.gz
Still fixing cleaning application/octet-streamand not succesfull yet.
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r--bugzillaBugTriage.js28
1 files changed, 13 insertions, 15 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index ef072cf..48748af 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -161,9 +161,12 @@ req.onreadystatechange = function (aEvt) {
script.innerHTML = req.responseText;
thisDoc.getElementsByTagName("head")[0].appendChild(script);
XMLRPCMessage = jetpack.tabs.focused.contentWindow.wrappedJSObject.XMLRPCMessage;
+ console.log("XMLHTTPRequest should be loaded.");
+ console.log(XMLRPCMessage);
}
}
};
+console.log("Now we are calling XMLHTTPRequest to load xmlrpc.js");
req.send("");
//==============================================================
@@ -522,7 +525,7 @@ BzPage.prototype.serializeForm = function (form) {
*/
function serializeControl(element) {
var val = element.value;
- console.log("val.toSource() = " + val.toSource());
+ // console.log("val.toSource() = " + val.toSource());
/*
on HTMLSelectElement we have an attribute 'type' of type DOMString, readonly
The type of this form control. This is the string "select-multiple"
@@ -979,7 +982,6 @@ BzPage.prototype.fillInChipMagic = function () {
return (/[xX].*log/.test(value[0]) && /text/.test(value[2]));
});
if (this.XorgLogAttList.length === 0) {
- console.log("No Xorg.0.log attachments found.");
return;
}
@@ -1081,21 +1083,14 @@ BzPage.prototype.sendBugUpstream = function() {
var ret = jetpack.tabs.open(url);
var that = this;
- console.log("Setting up load listener");
jetpack.tabs.onReady(function() {
var otherDoc = ret.contentDocument;
- console.log("otherDoc");
- console.log(otherDoc);
var otherElems = otherDoc.forms.namedItem("Create").elements;
otherElems.namedItem("short_desc").value =
that.dok.getElementById("short_desc_nonedit_display").
textContent.trim();
otherElems.namedItem("comment").value = that.collectComments();
- ret.focused();
-
- console.log("opening new tab returned");
- console.log(ret);
-
+ ret.focused();
});
};
@@ -1199,6 +1194,7 @@ BzPage.prototype.changeOwner = function(newAssignee) {
* current owner is added to CC list.
* Switch off setting to the default assignee
*/
+ var defAssigneeButton;
if (!isInList(newAssignee, this.CCList)) {
this.dok.getElementById("newcc").textContent = newAssignee;
}
@@ -1206,7 +1202,10 @@ BzPage.prototype.changeOwner = function(newAssignee) {
this.clickMouse(this.dok.getElementById("bz_assignee_edit_action"));
this.dok.getElementById("assigned_to").value = newAssignee;
this.dok.getElementById("set_default_assignee").checked = false;
- this.dok.getElementById("setdefaultassigneebutton").style.display = "none";
+ if (defAssigneeButton = this.dok.
+ getElementById("setdefaultassigneebutton")) {
+ defAssigneeButton.style.display = "none";
+ }
}
};
@@ -1363,10 +1362,9 @@ BzPage.prototype.createFixAllButton = function (list) {
*/
BzPage.prototype.addTextLink = function (row) {
var that = this;
- console.log("row = " + row[4]);
var elemS = row[4].getElementsByTagName("td");
var elem = elemS[elemS.length-1];
- elem.innerHTML = "<br/><a href=''>Text</a>";
+ elem.innerHTML += "<br/><a href=''>Text</a>";
elem.addEventListener("click",function (x) {
that.fixAttachById(row[1],"text/plain");
}, false);
@@ -1656,8 +1654,8 @@ function BzPage(doc) {
this.login = loginArr[loginArr.length-1].trim();
// the following is quite awful brutal hack
- console.log("on __parent__ navigator.online = " +
- jetpack.__parent__.navigator.onLine);
+// console.log("on __parent__ navigator.online = " +
+// jetpack.__parent__.navigator.onLine);
if (myStorage.BZpassword) {
this.password = myStorage.BZpassword;
} else {