Skip to content

Commit

Permalink
Make officer stand-downs clearer
Browse files Browse the repository at this point in the history
Fixes #1092.
  • Loading branch information
markspolakovs committed Oct 17, 2022
1 parent afcdb8c commit 76b7a50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Templates/macros.twig
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ endfor %}
apiLink.appendChild(linkText);
apiLink.addEventListener('click', function(event) {
myradio.callAPI('{{method}}', '{{module}}', '{{action}}', '{{id}}', '{{options|first}}', {{options|json_encode()|raw}});
parent.remove();
myradio.callAPI('{{method}}', '{{module}}', '{{action}}', '{{id}}', '{{options|first}}', {{options|json_encode()|raw}}, function() {
window.location.reload();
});
event.preventDefault();
}, false);
Expand Down

0 comments on commit 76b7a50

Please sign in to comment.