1(function ( $ ) { $(document).ready(function() { 2 3 $(".js-close_infoflex").click(function() { 4 $(this).closest(".infoflex-item").fadeOut(function() { 5 $(this).remove(); 6 }); 7 $(this).closest(".infoflex-overlay-wrapper").fadeOut(function() { 8 $(this).remove(); 9 }); 10 // @patch 22/03/2023 ajouter appel ajax pour enregistrer la date de validation 11 // @patch 22/03/2023 à la place de l'enregistrement immédiat en PHP (si bouton d'action uniquement) 12 // @dev 02/05/2023 dev 13 14 // trouver infoflex_id 15 const infoflex_id = $(this).closest('.infoflex-item').data('infoflex-id'); 16 // console.log('infoflex_id',infoflex_id); 17 18 if (infoflex_id=='') return; 19 20 const o_request = { 21 action: 'infoflex_update_user_infoflex_validation_date', 22 data: { 23 infoflex_id: infoflex_id, 24 } 25 }; 26 // console.log(o_request); 27 28 $.ajax({ 29 url: ajaxurl, 30 type: 'POST', 31 data: { 32 action: 'app', 33 req: JSON.stringify(o_request) 34 }, 35 complete: function (response) { 36 console.log('Response : ', response.responseText); 37 } 38 39 }); // fin ajax 40 41 42 }); // fin click close_infoflex 43 44 45 46 47}); // fin doc ready 48}( jQuery ));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.