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 @@
{% include "tenders/_closed_badge.html" with tender=tender %} {% if tender.is_draft %} @@ -21,9 +21,7 @@ {% endif %}
- -diff --git a/lemarche/templates/tenders/list.html b/lemarche/templates/tenders/list.html index 5504f08ed..b32774a34 100644 --- a/lemarche/templates/tenders/list.html +++ b/lemarche/templates/tenders/list.html @@ -130,11 +130,3 @@