From 80a47ca2bca0856488be5b3594d706894732b7bc Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Tue, 28 Aug 2012 12:45:28 -0400 Subject: [PATCH] POST the pointer location on narrows (since the pointer moves). Ideally this would be expressed as an event handler bound to the in every place that the pointer changes, but I haven't found a way to do that yet (this is easy for *inputs* but not arbitrary DOM elements). (imported from commit c190e23f5ed5fd3e3a4823b763682d611ec5b446) --- templates/zephyr/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/zephyr/index.html b/templates/zephyr/index.html index 364dda988e..4cf65b67ca 100644 --- a/templates/zephyr/index.html +++ b/templates/zephyr/index.html @@ -94,6 +94,7 @@ function narrow(class_name, target_zephyr) { ); $("#selected").closest("td").empty(); $("#" + target_zephyr).children("td:first").html('

>

'); + $.post("update", {pointer: target_zephyr}); // Try to keep the zephyr in the same place on the screen after narrowing. scroll_to_zephyr(target_zephyr, old_top); @@ -111,6 +112,7 @@ function narrow_instance(class_name, instance, target_zephyr) { ); $("#selected").closest("td").empty(); $("#" + target_zephyr).children("td:first").html('

>

'); + $.post("update", {pointer: target_zephyr}); // Try to keep the zephyr in the same place on the screen after narrowing. scroll_to_zephyr(target_zephyr, old_top);