Fixes for race conditions between Realtime plugin and the AJAX display of inline replies.

* keep the notice-reply-placeholder around, but hidden
* insert things before the placeholder, rather than appending to the end of the list.
* append the active form after the hidden placeholder, so things inserted before the placeholder never come after it
* Realtime: check pre-existing notice visibility a second time after loading the HTML for a notice. Fixes bug where sometimes your own post would be shown twice because the Realtime notification arrived before the AJAX posting returned, but Realtime's AJAX fetch of the notice returned after.
This commit is contained in:
Brion Vibber
2011-03-17 15:54:40 -07:00
parent 94ecfc3fcd
commit 057a831026
4 changed files with 20 additions and 12 deletions

2
js/util.min.js vendored

File diff suppressed because one or more lines are too long