From 574f34e556c4e4fe789f75d8f62e30284027746c Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Tue, 20 Apr 2021 09:19:26 +0200 Subject: [PATCH] Implement establishment selector in bidding view --- static/auction/js/establishment-selection.js | 5 +++++ templates/auction/bidding_list.html | 1 + 2 files changed, 6 insertions(+) create mode 100644 static/auction/js/establishment-selection.js diff --git a/static/auction/js/establishment-selection.js b/static/auction/js/establishment-selection.js new file mode 100644 index 0000000..cc96ef7 --- /dev/null +++ b/static/auction/js/establishment-selection.js @@ -0,0 +1,5 @@ +$("#id_establishment").change( + function() { + window.location.href = "/auction/bidding/" + $(this).val() + "/"; + } +); \ No newline at end of file diff --git a/templates/auction/bidding_list.html b/templates/auction/bidding_list.html index 7e861a4..b9029a8 100644 --- a/templates/auction/bidding_list.html +++ b/templates/auction/bidding_list.html @@ -52,4 +52,5 @@ {% block "scripts" %} + {% endblock %} \ No newline at end of file