diff --git a/RIGS/static/js/interaction.js b/RIGS/static/js/interaction.js index 7d2617f4..20f29d4c 100644 --- a/RIGS/static/js/interaction.js +++ b/RIGS/static/js/interaction.js @@ -131,4 +131,12 @@ $("#item-table tbody").sortable({ }); } +}); + +$('.autocomplete-update').on("autocompleteselect", function(event, ui) { + update_url = ui['item']['update']; + target = $('#' + event['target'].dataset.target + "-update"); + console.log(update_url); + console.log(target); + target.attr('href', update_url); }); \ No newline at end of file diff --git a/RIGS/templates/RIGS/event_form.html b/RIGS/templates/RIGS/event_form.html index c18db6f3..358a947e 100644 --- a/RIGS/templates/RIGS/event_form.html +++ b/RIGS/templates/RIGS/event_form.html @@ -123,18 +123,23 @@ -
+
-
- - - +
+
@@ -149,18 +154,23 @@ name="{{ form.organisation.name }}" value="{{ form.organisation.value|default_if_none:"" }}"/> -
+
-
- - - +
+
@@ -206,22 +216,23 @@ -
+
-
- - - +
+