From 68a2048e7a2350319935f17e5f98c86103ac3e77 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 7 Mar 2010 15:54:26 +0100 Subject: Add missing semicolons and stuff --- bugzillaBugTriage.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bugzillaBugTriage.js') diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 7ada462..fa87744 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -36,7 +36,7 @@ var manifest = { settings: [ { name: "BZpassword", type: "password", label: "Bugzilla password" }, { name: "JSONURL", type: "text", label: "Configuration file URL", - default: "http://mcepl.fedorapeople.org/scripts/BugZappers_data.json" } + "default": "http://mcepl.fedorapeople.org/scripts/BugZappers_data.json" } ] }; jetpack.future.import("storage.settings"); @@ -646,7 +646,7 @@ function onlineCallback() { req.setRequestHeader("Content-Type",formData.enctype); req.setRequestHeader("Referer",bugURL+bugID); req.setRequestHeader("Accept-Charset",formData.acceptCharset); - req.setRequestHeader("Cookie",formData.cookie) + req.setRequestHeader("Cookie",formData.cookie); req.onreadystatechange = function (aEvt) { if (req.readyState == 4) { if (req.status == 200) { @@ -741,7 +741,7 @@ BzPage.prototype.addTextToTextBox = function(id,string2BAdded) { // don't remove the current content of the comment box, // just behave accordingly if (textBox.value.length > 0) { - textBox.value = textBox.value + separator; + textBox.value = textBox.value.trim() + separator; } textBox.value = textBox.value + string2BAdded; }; @@ -1833,7 +1833,9 @@ function BzPage(doc) { abrtButton.setAttribute("href",abrtQueryURL); abrtButton.textContent = "Abrt bugs"; mainTitle.appendChild(abrtButton); + // FIXME trac# 29 ... possibility of switching to ID lob_newqueryname ??? var develWhiteboardElem = this.dok.getElementById("cf_devel_whiteboard"); + // This is just a security for bug pages without cf_devel_whiteboard element var develWhiteboard = develWhiteboardElem ? develWhiteboardElem. value : "btparsed"; @@ -1902,7 +1904,7 @@ function BzPage(doc) { // offline-capable submit this.dok.forms.namedItem("changeform"). addEventListener('submit', function (evt) { - that.submitCallback.call(that, evt)}, + that.submitCallback.call(that, evt);}, false); // logging all submits for timesheet -- cgit