Javascript and image file for "untrack document" feature.
- Legacy-Id: 8131
This commit is contained in:
parent
4d71417817
commit
c8c3b04643
BIN
static/images/remove_from_list.png
Normal file
BIN
static/images/remove_from_list.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 287 B |
|
@ -80,6 +80,22 @@ $(function () {
|
|||
});
|
||||
});
|
||||
|
||||
$('.search-results .removefromlist a').click(function(e) {
|
||||
e.preventDefault();
|
||||
var trigger = $(this);
|
||||
$.ajax({
|
||||
url: trigger.attr('href'),
|
||||
type: 'POST',
|
||||
cache: false,
|
||||
dataType: 'json',
|
||||
success: function(response){
|
||||
if (response.success) {
|
||||
trigger.replaceWith('removed');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$("a.ballot-icon").click(function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
|
|
Loading…
Reference in a new issue