]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Fixes for race conditions between Realtime plugin and the AJAX display of inline...
authorBrion Vibber <brion@pobox.com>
Thu, 17 Mar 2011 22:54:40 +0000 (15:54 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 17 Mar 2011 22:54:40 +0000 (15:54 -0700)
commit057a83102671fad222b00de978bf86938d501943
tree79dcee4cb36e9c44877a56ca343af34d15c4d9d7
parent94ecfc3fcd3d61e035fe9291df4b002c383d8b46
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.
js/util.js
js/util.min.js
plugins/Realtime/realtimeupdate.js
plugins/Realtime/realtimeupdate.min.js