FELIX-1607 - Improve status info line, correct timeline display.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@818849 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/event/src/main/resources/res/ui/events.js b/webconsole-plugins/event/src/main/resources/res/ui/events.js
index 771451f..acb3951 100644
--- a/webconsole-plugins/event/src/main/resources/res/ui/events.js
+++ b/webconsole-plugins/event/src/main/resources/res/ui/events.js
@@ -47,7 +47,7 @@
$("#plugin_table").trigger("update");
if ( view == 1 ) {
$("#timeline").remove();
- $("div.table").append( "<div id='timeline'></div>" );
+ $("div.table").append( "<div id='timeline' width='100%'></div>" );
for ( var idx in eventData.data ) {
entryTimeline( eventData.data[idx] );
}
@@ -61,13 +61,13 @@
}
function entryTimeline( /* Object */ dataEntry ) {
- var txt = "<div class='event" + dataEntry.category + "' style='width:" + dataEntry.width + "%;'>";
- txt = txt + "<b>" + dataEntry.topic + "</b> ";
+ var txt = "<div class='event" + dataEntry.category + "' style='overflow:visible;white-space:nowrap;width:" + dataEntry.width + "%;'>";
+ txt = txt + "<b>" + dataEntry.offset + "</b> <b>" + dataEntry.topic + "</b>";
if ( dataEntry.info ) {
- txt = txt + dataEntry.info;
+ txt = txt + " : " + dataEntry.info;
}
txt = txt + "</div>";
- $("#timeline").append(txt);
+ $("#timeline").prepend(txt);
}
function entryInternal( /* Element */ parent, /* Object */ dataEntry ) {