Fix bug with readmarker

This commit is contained in:
Tor Hveem 2013-10-12 21:06:24 +02:00
parent ee890222c5
commit fc8714b4d4
3 changed files with 5 additions and 5 deletions

View File

@ -40,9 +40,9 @@ td.message {
word-wrap: break-word;
width: 100%;
}
#readmarker {
hr {
margin: 0;
color: #111;
border-color: darkgreen;
}
.text {
white-space: pre;

View File

@ -133,9 +133,9 @@ $ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out rel
</div>
</td>
</tr>
<tr ng-repeat-end ng-if="activeBuffer().lastSeen-1==$index">
<tr class="readmarker" ng-repeat-end ng-show="activeBuffer().lastSeen==$index">
<td colspan="3">
<hr id="readmarker">
<hr ng-if="activeBuffer().lastSeen==$index" id="readmarker">
</td>
</tr>
</tbody>

View File

@ -152,7 +152,7 @@ models.service('models', ['colors', function(colors) {
// turn off the active status for the previous buffer
previousBuffer.active = false;
// Save the last line we saw
previousBuffer.lastSeen = previousBuffer.lines.length;
previousBuffer.lastSeen = previousBuffer.lines.length-1;
}
activeBuffer = _.find(this.model['buffers'], function(buffer) {