aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-03-07 15:54:26 +0100
committerMatěj Cepl <mcepl@redhat.com>2010-03-07 15:54:26 +0100
commit68a2048e7a2350319935f17e5f98c86103ac3e77 (patch)
treeb23e313a0cc7b58bf5aaf43d27075cdf20b08df1
parentc08add1575c2899641188561fc0970d9b8f94302 (diff)
downloadbugzilla-triage-68a2048e7a2350319935f17e5f98c86103ac3e77.tar.gz
Add missing semicolons and stuff
-rw-r--r--bugzillaBugTriage.js10
1 files changed, 6 insertions, 4 deletions
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