This commit is contained in:
Falkvinge
2017-03-17 05:19:17 +01:00
parent 45249b735d
commit 2fde03f0e0
4 changed files with 29 additions and 6 deletions
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -254,7 +254,7 @@
<h2 class="flashheader orange">Tech Malfunctions<span class="arrow"></span></h2>
<div class="box">
<div id="divMalfunctionsList" class="content">
<ul><li>Test one (ignore)</li><li>Test two (ignore too)</li><li>Test three (you know the drill now)</li></ul>
</div>
</div>
</div>
+6 -4
View File
@@ -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(); });
}
});
}
+21
View File
@@ -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 */