Commit d673a731 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: clear nested if blocks with same test

parent a6ca555e
...@@ -62,13 +62,11 @@ function writeLogs(data) { ...@@ -62,13 +62,11 @@ function writeLogs(data) {
} }
logReadingPosition = data.content.position; logReadingPosition = data.content.position;
if (data.content.content !== "") {
if (data.content.content !== "") { if (data.content.content !== "") {
$("#salpgridLog").append(log_info + "<p rel='" + size + "'>" + data.content.content.toHtmlChar() + "</p>"); $("#salpgridLog").append(log_info + "<p rel='" + size + "'>" + data.content.content.toHtmlChar() + "</p>");
$("#salpgridLog") $("#salpgridLog")
.scrollTop($("#salpgridLog")[0].scrollHeight - $("#salpgridLog").height()); .scrollTop($("#salpgridLog")[0].scrollHeight - $("#salpgridLog").height());
} }
}
if (running && openedlogpage !== "") { if (running && openedlogpage !== "") {
$("#salpgridLog").show(); $("#salpgridLog").show();
$("#manualLog").hide(); $("#manualLog").hide();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment