From 085f2840a820bf83e859eb95f016ebbd6e31d526 Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Sun, 3 Feb 2013 22:01:54 +0100 Subject: [PATCH] fixed #134 --- WebKit/scripts/helper/Core.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js index a1faa26..7f79c82 100644 --- a/WebKit/scripts/helper/Core.js +++ b/WebKit/scripts/helper/Core.js @@ -352,7 +352,17 @@ function(jQuery, Paths, URI, HostApp, Cache) { var _this = this; remove.get(0).onclick = function(e) { var callback = function() { - remove.hide(); + + if(post.status.entity == HostApp.stringForKey("entity")) { + remove.get(0).onclick = function(e) { + _this.remove(post.status.id); + return false; + } + } else { + remove.hide(); + } + + $(post).find(".repost").show(); }