diff --git a/lemarche/static/js/utils.js b/lemarche/static/js/utils.js index 76ee7c76e..a1a89f8d6 100644 --- a/lemarche/static/js/utils.js +++ b/lemarche/static/js/utils.js @@ -27,6 +27,11 @@ window.addEventListener('DOMContentLoaded', function () { initSuperBadges(); }); initSuperBadges(); + + // some elements have their url in data-url attribute + $(document).on("click", ".with-data-url", function(e) { + window.location.href = $(this).data("url"); + }); }); let toggleRequiredClasses = (toggle, element) => { diff --git a/lemarche/templates/networks/dashboard_network_tender_list.html b/lemarche/templates/networks/dashboard_network_tender_list.html index d8f4ac3cb..32462afa7 100644 --- a/lemarche/templates/networks/dashboard_network_tender_list.html +++ b/lemarche/templates/networks/dashboard_network_tender_list.html @@ -46,11 +46,3 @@

Opportunités commerciales reçues par mes adhérents

{% endblock %} - -{% block extra_js %} - -{% endblock %} diff --git a/lemarche/templates/tenders/_list_item_buyer.html b/lemarche/templates/tenders/_list_item_buyer.html index b1edb8fb5..3d64ac1a8 100644 --- a/lemarche/templates/tenders/_list_item_buyer.html +++ b/lemarche/templates/tenders/_list_item_buyer.html @@ -1,9 +1,9 @@ {% load static humanize %} -