diff --git a/amadeus/static/js/topics.js b/amadeus/static/js/topics.js index c7a3ccf..5a171b2 100644 --- a/amadeus/static/js/topics.js +++ b/amadeus/static/js/topics.js @@ -63,4 +63,14 @@ function sendUpdate(data) { console.log(response); } }); +} + +function delete_topic(url) { + $('.modal').remove(); + + $.get(url, function (modal) { + $("#topics-accordion").after(modal); + + $('.modal').modal('show'); + }); } \ No newline at end of file diff --git a/topics/templates/topics/delete.html b/topics/templates/topics/delete.html new file mode 100644 index 0000000..1963c9d --- /dev/null +++ b/topics/templates/topics/delete.html @@ -0,0 +1,23 @@ +{% load i18n %} + +