From 0ea139510c1457aa027da4390cb8bdeedbf4603a Mon Sep 17 00:00:00 2001 From: jeena Date: Tue, 9 Apr 2013 18:01:47 +0200 Subject: [PATCH] fixed #206 #202 --- WebKit/scripts/helper/Core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js index c3c3147..00f49f2 100644 --- a/WebKit/scripts/helper/Core.js +++ b/WebKit/scripts/helper/Core.js @@ -166,7 +166,7 @@ function(jQuery, Paths, URI, HostApp, Cache) { var template = this.getTemplate(); - template.item.id = "post-" + status.id; + template.item.id = "post-" + status.id + "-" + this.action; template.item.status = status; if (HostApp.stringForKey("entity") == status.entity && typeof status.__repost == "undefined") { @@ -373,7 +373,7 @@ function(jQuery, Paths, URI, HostApp, Cache) { Core.prototype.getRepost = function(repost, before_node) { - var post = document.getElementById("post-" + repost.content.id); + var post = document.getElementById("post-" + repost.content.id + "-" + this.action); if (post) { @@ -411,7 +411,7 @@ function(jQuery, Paths, URI, HostApp, Cache) { $(post).find(".reposted_by").show(); var li = $("
  • "); - li.attr("id", "post-" + repost.id) + li.attr("id", "post-" + repost.id + "-" + this.action) var a = $(""); a.attr("href", repost.entity);