Skip to content

Commit c8c3b04

Browse files
committed
Javascript and image file for "untrack document" feature.
- Legacy-Id: 8131
1 parent 4d71417 commit c8c3b04

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

static/images/remove_from_list.png

287 Bytes
Loading

static/js/doc-search.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,22 @@ $(function () {
8080
});
8181
});
8282

83+
$('.search-results .removefromlist a').click(function(e) {
84+
e.preventDefault();
85+
var trigger = $(this);
86+
$.ajax({
87+
url: trigger.attr('href'),
88+
type: 'POST',
89+
cache: false,
90+
dataType: 'json',
91+
success: function(response){
92+
if (response.success) {
93+
trigger.replaceWith('removed');
94+
}
95+
}
96+
});
97+
});
98+
8399
$("a.ballot-icon").click(function (e) {
84100
e.preventDefault();
85101

0 commit comments

Comments
 (0)