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; word-wrap: break-word;
width: 100%; width: 100%;
} }
#readmarker { hr {
margin: 0; margin: 0;
color: #111; border-color: darkgreen;
} }
.text { .text {
white-space: pre; white-space: pre;

View file

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

View file

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