Skip to content

Commit

Permalink
Fixed tag remove & tag link. See #8289
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Moore committed Mar 15, 2012
1 parent a60865a commit a50767e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,15 @@
// bind removeItem to various [-] buttons
$(".removeComment").click(function(event) {
removeItem(event, "ann_comment_wrapper");
return false;
});
$(".removeTag").click(function(event) {
removeItem(event, "tag_annotation_wrapper");
return false;
});
$(".removeFile").click(function(event) {
removeItem(event, "file_ann_wrapper");
return false;
});

var deleteItem = function(event, domClass) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
{% endcomment %}

<span class="tag_annotation_wrapper">
<a class='tooltip tag' href="{% url load_template "usertags" %}{% if not tag.isOwned %}?experimenter={{ tag.getOwner.id }}{% endif %}" target="_top"> {{ tag.textValue }} <span class='removeTag' id="{{ tag.id }}-tag" title="Unlink"> x </span></a>
{% if tag.link.isOwned %}

{% endif %}

<a class='tooltip tag' href="{% url load_template "usertags" %}?path=tag={{ tag.id }}{% if not tag.isOwned %}&experimenter={{ tag.getOwner.id }}{% endif %}" target="_top"> {{ tag.textValue }}
{% if tag.link.isOwned %}
<span class='removeTag' id="{{ tag.id }}-tag" title="Unlink"> x </span>
{% endif %}
</a>

<span class="tooltip_html" style='display:none'>
<b>Owner:</b> {{ tag.getOwner.getFullName }}<br />
<b>Linked by:</b> {{ tag.link.getDetails.getOwner.getFullName }}<br />
Expand Down

0 comments on commit a50767e

Please sign in to comment.