aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-13 12:20:05 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:47 +0200
commit83fd7fd92e5b21a177bc16cc7318792cf63a343b (patch)
tree20f3e5a59eb9ce32a9b9973d7131e7135bd94999 /data/lib/bzpage.js
parent5b837d6739a12a516203fa0505ca562839463a79 (diff)
downloadbugzilla-triage-83fd7fd92e5b21a177bc16cc7318792cf63a343b.tar.gz
Really Eclipseize formatting.
Diffstat (limited to 'data/lib/bzpage.js')
-rw-r--r--data/lib/bzpage.js48
1 files changed, 24 insertions, 24 deletions
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js
index 10c71fb..aa496cf 100644
--- a/data/lib/bzpage.js
+++ b/data/lib/bzpage.js
@@ -9,14 +9,14 @@ var NumberOfFrames = 7;
// constants
var SalmonPink = new Color(255, 224, 176); // RGB 255, 224, 176; HSL 36, 2,
- // 85
+// 85
var ReporterColor = new Color(255, 255, 166); // RGB 255, 255, 166; HSL 60, 2,
- // 83
+// 83
// global variables
var config = {};
var constantData = {}; // This should be probably eliminated ASAP or
- // or done by other means. TODO
+// or done by other means. TODO
var equivalentComponents = null;
/**
* central handler processing messages from the main script.
@@ -34,7 +34,7 @@ self.on('message', function onMessage(msg) {
constantData = msg.data.constData;
config = msg.data.config;
equivalentComponents = ("equivalentComponents" in constantData) ?
- constantData.equivalentComponents : null;
+ constantData.equivalentComponents : null;
generateButtons(msg.data.instPkgs, msg.data.kNodes);
completeInit();
break;
@@ -131,7 +131,7 @@ function centralCommandDispatch (cmdLabel, cmdParams) {
clickMouse("bz_url_edit_action");
document.getElementById("bug_file_loc").value = cmdParams;
break;
- // TODO dependson/blocked doesn't work. Find out why.
+ // TODO dependson/blocked doesn't work. Find out why.
case "addDependsOn":
clickMouse("dependson_edit_action");
addStuffToTextBox("dependson", cmdParams);
@@ -165,7 +165,7 @@ function centralCommandDispatch (cmdLabel, cmdParams) {
case "queryStringOurBugzilla":
queryForSelection();
break;
- // TODO flags, see also
+ // TODO flags, see also
case "commit":
if (cmdParams) {
// Directly commit the form
@@ -179,7 +179,7 @@ function centralCommandDispatch (cmdLabel, cmdParams) {
else {
console.error("Unknown command:\n" + cmdLabel + "\nparameters:\n" + cmdParams);
}
- break;
+ break;
}
}
@@ -200,7 +200,7 @@ function changeAssignee (newAssignee) {
// Optional value null
if (newAssignee === null) {
document.getElementById("set_default_assignee").removeAttribute(
- "checked");
+ "checked");
return ;
}
@@ -273,8 +273,8 @@ function generateButtons (pkgs, kNodes) {
// =========================================================
if (kNodes && window.location.hostname in kNodes) {
- var killConf = kNodes[window.location.hostname];
- killNodes(document, killConf[0], killConf[1]);
+ var killConf = kNodes[window.location.hostname];
+ killNodes(document, killConf[0], killConf[1]);
}
// create anchor for the top toolbar
@@ -300,14 +300,14 @@ function generateButtons (pkgs, kNodes) {
break;
default: // [+-]ID
var firstChr = cmdObj.position.charAt(0);
- var newId = cmdObj.position.substr(1);
- createNewButton(newId, firstChr === "+", cmdObj);
- break;
+ var newId = cmdObj.position.substr(1);
+ createNewButton(newId, firstChr === "+", cmdObj);
+ break;
}
}
else {
console.error("generateButtons : rejected cmdObj = " +
- cmdObj.toSource());
+ cmdObj.toSource());
}
}
}
@@ -320,12 +320,12 @@ function setConfigurationButton () {
+ "Triage configuration</a>";
additionalButtons.appendChild(configurationButtonUI);
document.getElementById("configurationButton").addEventListener(
- "click",
- function(evt) {
- self.postMessage(new Message("ChangeJSONURL", null));
- evt.stopPropagation();
- evt.preventDefault();
- }, false);
+ "click",
+ function(evt) {
+ self.postMessage(new Message("ChangeJSONURL", null));
+ evt.stopPropagation();
+ evt.preventDefault();
+ }, false);
}
/**
@@ -346,15 +346,15 @@ function getOptionTableCell(tableId, label) {
if (ourLine.length > 0) {
return ourLine[0].getElementsByTagName("td")[1].
- getElementsByTagName("a")[0];
+ getElementsByTagName("a")[0];
}
return null;
}
/**
- * Complete startup, mainly run alternate inits for non-standard BZ
- * with proper arguments
+ * Complete startup, mainly run alternate inits for non-standard BZ with proper
+ * arguments
*
*/
function completeInit() {
@@ -394,7 +394,7 @@ function startup() {
if (brElementPlacer) {
brElementPlacer.setAttribute("id","brElementPlacer_location");
brElementPlacer.parentNode.insertBefore(document.createElement("br"),
- brElementPlacer);
+ brElementPlacer);
}
}