From 52d4973a72930fa25bc30d4d529b12c05fbbfba6 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 13 Jan 2010 00:21:24 +0100 Subject: Tiny reformatting changes. --- bugzillaBugTriage.js | 36 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 24 deletions(-) (limited to 'bugzillaBugTriage.js') 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 = "Fix 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 = " - " + + customJSONURLUI.innerHTML = "\u00A0-\u00A0" + "BugZap config"; 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" -- cgit