diff --git a/templates/zephyr/index.html b/templates/zephyr/index.html index 663bd369c9..364dda988e 100644 --- a/templates/zephyr/index.html +++ b/templates/zephyr/index.html @@ -99,7 +99,8 @@ function narrow(class_name, target_zephyr) { scroll_to_zephyr(target_zephyr, old_top); } -function narrow_instance(class_name, instance) { +function narrow_instance(class_name, instance, target_zephyr) { + var old_top = $("#main_div").offset().top - $("#" + target_zephyr).offset().top; $("tr").each( function() { if (($(this).find("span.zephyr_class").text() != class_name) || @@ -108,6 +109,11 @@ function narrow_instance(class_name, instance) { } } ); + $("#selected").closest("td").empty(); + $("#" + target_zephyr).children("td:first").html('
>
'); + + // Try to keep the zephyr in the same place on the screen after narrowing. + scroll_to_zephyr(target_zephyr, old_top); } function unhide() { @@ -131,7 +137,7 @@ function get_updates() {" + zephyr.zephyr_class.name +
-" / " + zephyr.instance + " / " + zephyr.sender + "
" +
+" / " + zephyr.instance + " / " + zephyr.sender + "
" +
zephyr.content +
"