<modelVersion>4.0.0</modelVersion>
<groupId>net.pterodactylus</groupId>
<artifactId>sone</artifactId>
- <version>0.3.1-RC2</version>
+ <version>0.3.1-RC3</version>
<dependencies>
<dependency>
<groupId>net.pterodactylus</groupId>
}
/** The version. */
- public static final Version VERSION = new Version("RC2", 0, 3, 1);
+ public static final Version VERSION = new Version("RC3", 0, 3, 1);
/** The logger. */
private static final Logger logger = Logging.getLogger(SonePlugin.class);
loadedPosts[postId] = true;
$.getJSON("ajax/getPost.ajax", { "post" : postId }, function(data, textStatus) {
if ((data != null) && data.success) {
- /* maybe weird timing stuff ensues. */
- if (data.post.id in loadedPosts) {
- return;
- }
var firstOlderPost = null;
$("#sone .post").each(function() {
if (getPostTime(this) < data.post.time) {
return false;
}
});
+ newPost = $(data.post.html).addClass("hidden");
if (firstOlderPost != null) {
newPost.insertBefore(firstOlderPost);
} else {
$.getJSON("ajax/getReply.ajax", { "reply": replyId }, function(data, textStatus) {
/* find post. */
if ((data != null) && data.success) {
- /* maybe weird timing stuff ensues. */
- if (data.reply.id in loadedReplies) {
- return;
- }
$("#sone .post#" + data.reply.postId).each(function() {
var firstNewerReply = null;
$(this).find(".replies .reply").each(function() {
return false;
}
});
+ newReply = $(data.reply.html).addClass("hidden");
if (firstNewerReply != null) {
newReply.insertBefore(firstNewerReply);
} else {