Skip to content

Commit

Permalink
fix(dashboard_siae) : fix du bug d'affichage des tabs pour compléter …
Browse files Browse the repository at this point in the history
…les données des siaes
  • Loading branch information
madjid-asa committed Feb 21, 2024
1 parent 8874279 commit d79fcd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lemarche/static/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ window.addEventListener('DOMContentLoaded', function () {
initModalMessages();

// reload click events and tooltip after htmx content loading as in semantic search
document.addEventListener('htmx:afterSwap', function(event) {
document.addEventListener('htmx:afterSwap', function (event) {
initSuperBadges();
});
initSuperBadges();
Expand Down Expand Up @@ -79,7 +79,7 @@ const initSuperBadges = () => {

});
});
$('.s-tabs-01__nav .nav-item').on('click', function (event) {
$('#siaes_tabs .nav-item').on('click', function (event) {
event.preventDefault()
let tabContent = this.parentElement.parentElement.querySelector(".tab-content");
let hasSuperBadgeTab = this.children[0].classList.contains("super-badge-tab");
Expand Down
2 changes: 1 addition & 1 deletion lemarche/templates/dashboard/home_siae.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1 class="s-title-01__title h1"><strong>Tableau de bord</strong></h1>
{% if user.siaeuser_set.count %}
<section class="s-tabs-01 mb-3 mb-lg-5">
<div class="s-tabs-01__container container">
<div class="s-tabs-01__row row">
<div id="siaes_tabs" class="s-tabs-01__row row">
<div class="s-tabs-01__col col-12">
<ul class="s-tabs-01__nav nav nav-tabs" role="tablist">
{% for siaeuser in user.siaeuser_set.all %}
Expand Down

0 comments on commit d79fcd3

Please sign in to comment.