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)
This commit is contained in:
Jessica McKellar 2012-08-28 12:45:28 -04:00 committed by Tim Abbott
parent 2bf27af375
commit 80a47ca2bc
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,7 @@ function narrow(class_name, target_zephyr) {
);
$("#selected").closest("td").empty();
$("#" + target_zephyr).children("td:first").html('<p id="selected">&gt;</p>');
$.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('<p id="selected">&gt;</p>');
$.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);