Fix vote counting to only count main target notes (not mixed in ones)

This commit is contained in:
Riyad Preukschas 2012-10-10 12:09:45 +02:00
parent 3f72af9994
commit fb0279f311
3 changed files with 15 additions and 16 deletions

View file

@ -230,7 +230,7 @@ var NoteList = {
updateVotes:
function() {
var votes = $("#votes .votes");
var notes = $("#notes-list, #new-notes-list").find(".note.vote");
var notes = $("#notes-list, #new-notes-list").find(".note .vote");
// only update if there is a vote display
if (votes.size()) {