Child comments were showing vote of deleted parent

Fix issue where child comment would get vote of parent if parent deleted
This commit is contained in:
ughblah
2012-03-14 21:03:18 -05:00
committed by Keith Mitchell
parent 73ed5e3f61
commit c20cedffa5

View File

@@ -6,10 +6,10 @@
var dislikes = ${unsafe(simplejson.dumps(thing.dislikes))};
var friends = ${unsafe(simplejson.dumps(list(thing.is_friend)))};
$.map(likes, function(l) {
$(".id-" + l).find(".arrow.up:first").vote("", null, null, true);
$(".id-" + l + " > .midcol").find(".arrow.up").vote("", null, null, true);
});
$.map(dislikes, function(l) {
$(".id-" + l).find(".arrow.down:first").vote("", null, null, true);
$(".id-" + l + " > .midcol").find(".arrow.down").vote("", null, null, true);
});
$.map(friends, show_friend);