diff --git a/FrontSocket/FrontendLoop.cs b/FrontSocket/FrontendLoop.cs
index e29604ed..b4d88e02 100644
--- a/FrontSocket/FrontendLoop.cs
+++ b/FrontSocket/FrontendLoop.cs
@@ -227,7 +227,7 @@ namespace Swarmops.Frontend.Socket
{
JObject malfunctionObject = new JObject();
malfunctionObject["Id"] = "Mal" + loop.ToString();
- malfunctionObject["Text"] = malfunctionStrings[loop] + " (Test code, ignore)";
+ malfunctionObject["Text"] = malfunctionStrings[loop] + " (Test code, ignore - and let's make this a multiline point to test flow)";
malfunctionsArray.Add(malfunctionObject);
}
diff --git a/Site/Master-v5.master b/Site/Master-v5.master
index f598b9d5..cd564347 100644
--- a/Site/Master-v5.master
+++ b/Site/Master-v5.master
@@ -254,7 +254,7 @@
-
+
- Test one (ignore)
- Test two (ignore too)
- Test three (you know the drill now)
diff --git a/Site/Scripts/Swarmops-v5.js b/Site/Scripts/Swarmops-v5.js
index 0d2da264..69dd779b 100644
--- a/Site/Scripts/Swarmops-v5.js
+++ b/Site/Scripts/Swarmops-v5.js
@@ -104,13 +104,15 @@ function updateListBox(box, listData) {
console.log($(this));
var elementId = $(this).attr("rel");
console.log(elementId);
+ var testLookup = idListLookup[elementId];
+ console.log(testLookup);
- if (typeof idListLookup[elementId] != 'undefined') {
+ if (testLookup === undefined) {
+ // displayed item is NOT present in supplied list, and should be removed
+ $(this).slideUp(400, function () { $(this).remove(); });
+ } else {
// displayed item is present in supplied list
// TODO: update text
- } else {
- // displayed item is NOT present in supplied list, and should be removed
- $(this).slideUp(400, function() { $(this).remove(); });
}
});
}
diff --git a/Site/Style/style-v5.css b/Site/Style/style-v5.css
index d912747c..a7b19ac8 100644
--- a/Site/Style/style-v5.css
+++ b/Site/Style/style-v5.css
@@ -1146,6 +1146,27 @@ body.rtl .sidebar h2 span.arrow {
+/* TODO, MALFUNCTIONS LIST IN SIDEBAR */
+
+div#divMalfunctionsList > ul {
+ list-style: none;
+}
+
+div#divMalfunctionsList > ul > li {
+ padding-top: 8px;
+ background: url('/Images/Icons/iconshock-warning-24px.png') no-repeat 0px 3px;
+ padding-left: 30px;
+ padding-bottom: 5px;
+ line-height: 140%;
+}
+
+div#divMalfunctionsList > ul > li+li {
+ border-top: 1px #476EC7 solid;
+ margin-top: 5px;
+}
+
+/* TODO: RTL VERSION AND TODO VERSION */
+
/* OTHER ELEMENTS */