aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-01-13 00:21:24 +0100
committerMatěj Cepl <mcepl@redhat.com>2010-01-13 00:21:24 +0100
commit52d4973a72930fa25bc30d4d529b12c05fbbfba6 (patch)
tree400b442587c9257d99b8b4f608b2ffad210359c9
parent8a2ceeb47cb22a5bdc29e60973bebd87bfbe9dd6 (diff)
downloadbugzilla-triage-52d4973a72930fa25bc30d4d529b12c05fbbfba6.tar.gz
Tiny reformatting changes.
-rw-r--r--bugzillaBugTriage.js36
1 files changed, 12 insertions, 24 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index d8f5d1d..8f5caf4 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -920,7 +920,7 @@ BzPage.prototype.addNewButton = function (originalLocation,newId,newLabel,
newButton.value = newLabel;
newButton.addEventListener("click",function (evt) {
that.generalPurposeCureForAllDisease(commStr,nState, secPar);
- },false);
+ }, false);
if (after) {
originalLocation.parentNode.insertBefore(newButton,
@@ -978,7 +978,7 @@ BzPage.prototype.fillInChipMagic = function () {
interestingArray = ChipsetRE.exec(interestingLineArr[0]);
interestingLine = interestingArray[2].
replace(/[\s"]+/g," ").trim();
- var whiteboardInput = this.dok.
+ var whiteboardInput = that.dok.
getElementById("status_whiteboard");
that.addNewButton(whiteboardInput,"chipmagic","Fill In",
"","CHIPMAGIC",
@@ -1353,7 +1353,7 @@ BzPage.prototype.createFixAllButton = function (list) {
elem.innerHTML = "<b>F</b>ix all";
elem.addEventListener("click", function() {
that.fixAllAttachments(list);
- },false);
+ }, false);
return elem;
};
@@ -1613,12 +1613,12 @@ BzPage.prototype.buildButtons = function (above,below) {
if (queryButtonAvailable) {
// Add query search button
this.addNewButton(brElementPlacer,"newqueryintab",
- "Query for string","","QUERYSEL","",false);
+ "Query for string","","QUERYSEL","", false);
}
// Button for upstreaming
if (upstreamButtonAvailable) {
this.addNewButton(brElementPlacer,"sendupstream",
- "Send upstream","","SENDUPSTREAM","",false);
+ "Send upstream","","SENDUPSTREAM","", false);
}
// var brElement2BMoved = this.dok.querySelector("#comment_status_commit br:last-of-type");
@@ -1727,7 +1727,8 @@ function BzPage(doc) {
// Dig out backtrace
this.btSnippet = "";
- var bugTitle = this.dok.getElementById("short_desc_nonedit_display").textContent;
+ var bugTitle = this.dok.getElementById("short_desc_nonedit_display").
+ textContent;
if (AbrtRE.test(bugTitle)) {
var notedLabel = this.dok.querySelector("label[for='newcc']");
@@ -1776,7 +1777,7 @@ function BzPage(doc) {
function () {
that.addTextToTextBox("comment", signatureFedoraString);
}
- ,false);
+ , false);
}
this.setBranding();
@@ -1787,7 +1788,7 @@ function BzPage(doc) {
var additionalButtons = this.dok.getElementById("bugzilla-body").
getElementsByClassName("related_actions")[0];
var customJSONURLUI = this.dok.createElement("li");
- customJSONURLUI.innerHTML = " - <a href='#' id='customJSONbutton'>" +
+ customJSONURLUI.innerHTML = "\u00A0-\u00A0<a href='#' id='customJSONbutton'>" +
"BugZap config</a>";
additionalButtons.appendChild(customJSONURLUI);
this.dok.getElementById("customJSONbutton").
@@ -1799,7 +1800,7 @@ function BzPage(doc) {
jetpack.storage.simple.sync();
jetpack.tabs.focused.contentWindow.location.reload();
}
- },false);
+ }, false);
// set default assignee on change of the component
this.dok.getElementById("component").addEventListener("change",
@@ -1807,30 +1808,17 @@ function BzPage(doc) {
that.component = that.getOptionValue("component");
that.changeOwner(filterByRegexp(defAssigneeList, that.component).
toLowerCase());
- },false);
+ }, false);
// offline-capable submit
this.dok.forms.namedItem("changeform").
- addEventListener('submit', this.submitCallback, true);
+ addEventListener('submit', this.submitCallback, false);
}
var callback = function (doc) {
var curPage = new BzPage(doc);
};
-/* FIXME
- - consider offline status
- function newsubmit(event) {
- var target = event ? event.target : this;
-
- // do anything you like here
- alert('Submitting form to ' + target.action);
-
- // call real submit function
- this._submit();
-}
-*/
-
var options = {};
options.matches = [
"https://bugzilla.redhat.com/show_bug.cgi"