Skip to content

Commit

Permalink
Tagging bug with similar names seems to be fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
quii committed Apr 10, 2012
1 parent 5524e43 commit 28d60b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client-coffee/Tagger.coffee
Expand Up @@ -44,8 +44,11 @@ class Tagger
renderTaggedDocuments = (json) =>
renderedHTML = Mustache.to_html($('#tagged-template').html(), json)
$('#tagged-container').html(renderedHTML)

derp = $("#area-id").text()
$('#tagged-container').find(".also-tagged li").remove(":contains('#{derp}')");
$('#tagged-container').find(".also-tagged li").each( (index, element) =>
if $(element).find('a').text()==derp then $(element).remove()
)

if json.results.length is 0 then $('#tagged-container').hide()

Expand Down

0 comments on commit 28d60b1

Please sign in to comment.