Commit 68b93fb6 authored by Hanspeter Portner's avatar Hanspeter Portner

enumerate trace message lines.

parent 7d428246
......@@ -67,7 +67,7 @@
<div class="sticky-bottom">
<div id="tracemsg" class="trace"></div>
<div id="errmsg" class="error" hidden><br /></div>
<div id="errmsg" class="error" hidden></div>
</div>
<div class="box">
......
......@@ -16,6 +16,7 @@
*/
var editor = null;
var tracecnt = 0;
var LV2_CORE_PREFIX = "http://lv2plug.in/ns/lv2core#";
var LV2_ATOM_PREFIX = "http://lv2plug.in/ns/ext/atom#";
......@@ -516,7 +517,8 @@ function lv2_read_event(idx, obj) {
errmsg.html(value[RDF.value]).fadeIn(300);
} else if( (property[RDF.value] == MOONY.trace) && (value[RDFS.range] == LV2.ATOM.String) ) {
var tracemsg = $('#tracemsg');
tracemsg.append(value[RDF.value] + '<br />').scrollTop(tracemsg.prop('scrollHeight'));
tracemsg.append(tracecnt + ': ' + value[RDF.value] + '<br />').scrollTop(tracemsg.prop('scrollHeight'));
tracecnt += 1;
} else {
var item = $('#' + property[RDF.value].replace(trim, ''));
var range = item.attr('data-range');
......@@ -579,6 +581,7 @@ function keepalive() {
$('#status').html('disconnected');
$('.clip').hide();
$('#tracemsg').empty();
tracecnt = 0;
}
}
});
......@@ -685,6 +688,7 @@ $(document).ready(function() {
});
$('#clear').click(function(e) {
$('#tracemsg').empty();
tracecnt = 0;
e.preventDefault();
});
......
......@@ -89,7 +89,6 @@ select {
background-color:#111;
margin:0px;
padding:10px 10px 10px 10px;
font-family:monospace;
border:2px solid #666;
}
......
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