From d79008962058007887bc18cee40589875ada0af5 Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Sat, 19 Jan 2013 04:02:11 +0100 Subject: [PATCH] fixed repost count after deletion --- WebKit/scripts/helper/Core.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js index 1af7d95..60225b4 100644 --- a/WebKit/scripts/helper/Core.js +++ b/WebKit/scripts/helper/Core.js @@ -787,6 +787,13 @@ function(jQuery, Paths, URI, HostApp, Cache) { ul.get(0).removeChild(li); if (ul.find("li").length == 0) { ul.parent(".reposted_by").hide(); + } else { + var reposted_by = ul.parent(".reposted_by"); + var reposted_count = reposted_by.find("ul li").length; + + var people_person = reposted_count == 1 ? "person" : "people"; + + reposted_by.find("span").html("by " + reposted_count + " " + people_person); } }