Gu1llaume Posted May 25, 2020 Share Posted May 25, 2020 Bonjour, J'ai un souci avec le module dateofdelivery, la date ne se met a jour que lorsqu'on clique précisément sur le bouton radio et pas lorsqu'on clique sur le logo du transporteur (pourtant le bouton radio est bien changé a ce moment là) je vois bien que ça doit être à ce niveau là le souci beforeCarrier.tpl : $(function(){ refreshDateOfDelivery(); $('input[name^=delivery_option]').change(function(){ refreshDateOfDelivery(); }); Quelqu'un pour m'aider ? Merci Link to comment Share on other sites More sharing options...
Gu1llaume Posted May 28, 2020 Author Share Posted May 28, 2020 Personne n'est donc gêné/concerné par ce problème (qui a priori touche tout le monde) ? Link to comment Share on other sites More sharing options...
Gu1llaume Posted May 31, 2020 Author Share Posted May 31, 2020 (edited) Bon, encore une fois je me répond à moi-même... Et encore une fois c'est un module tiers qui génère cet effet de bord ! Dans Mondial Relay Advanced de Common-Services on a : modules/mondialrelayadvanced/views/js/front.js if (parseInt($.fn.jquery.split('.').join('')) > 172 && !$('.soflexibilite_env, .soliberte_env').length) { $(document).on('click', '.delivery_option_logo', function () { $(this).parent().find(carrier_selector).attr('checked', true).click().parent().addClass('checked'); // 'function' === typeof(updateCarrierSelectionAndGift) && updateCarrierSelectionAndGift(); // $(getCarrierSelector(true)).change(); }); } // For iOS phone/tablet // jQuery.click() does not work, unless the HTML element has a style cursor: pointer. // Weird... $('.delivery_option_logo, ' + carrier_selector).css('cursor', 'pointer'); ça n'a pas le même comportement qu'un vrai Click je suppose, du coup le module dateofdelivery ne fonctionne pas quand on clique sur le logo... J'ai pour l'instant corrigé en désactivant cette fonctionnalité de clique sur le logo (pratique mais bon...) Edited May 31, 2020 by Gu1llaume (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now