diff --git a/ietf/templates/doc/document_draft.html b/ietf/templates/doc/document_draft.html
index 88919ea65..abe831777 100644
--- a/ietf/templates/doc/document_draft.html
+++ b/ietf/templates/doc/document_draft.html
@@ -338,9 +338,9 @@
{% endif %}
{% if user.is_authenticated %}
{% if tracking_document %}
- Untrack
+
{% else %}
- Track
+
{% endif %}
{% endif %}
diff --git a/ietf/templates/doc/search/search_result_row.html b/ietf/templates/doc/search/search_result_row.html
index 2bfa5f5c2..3417a6cb9 100644
--- a/ietf/templates/doc/search/search_result_row.html
+++ b/ietf/templates/doc/search/search_result_row.html
@@ -6,12 +6,12 @@
{% if user.is_authenticated %}
{% if not doc.name in have_doc_status %}
- {% elif doc.name in doc_is_tracked %}
-
-
+ {% elif doc.name in doc_is_tracked %}
+
{% else %}
-
+
{% endif %}
diff --git a/static/facelift/js/ietf.js b/static/facelift/js/ietf.js
index 25a74fa5d..a7f45a71b 100644
--- a/static/facelift/js/ietf.js
+++ b/static/facelift/js/ietf.js
@@ -100,7 +100,7 @@ $(document).ready(function () {
}
// search results
- $('.addtolist a').click(function(e) {
+ $('.community-list-add-remove-doc').click(function(e) {
e.preventDefault();
var trigger = $(this);
$.ajax({
@@ -110,8 +110,10 @@ $(document).ready(function () {
dataType: 'json',
success: function(response){
if (response.success) {
- trigger.replaceWith('');
- }
+ trigger.parent().find(".tooltip").remove();
+ // it would be neater to swap in remove link
+ trigger.replaceWith('');
+ }
}
});
});
|