Bonjour,
Je cherche à appeler ajaxReload quand l’action d’un bouton est terminée.
Or, ce que permet #BOUTON_ACTION, c’est seulement de faire l’ajaxReload avant d’appeler l’action.
Exemple :
[(#BOUTON_ACTION{<:albumsauto:upload_info_mode_image:>,#URL_ACTION_AUTEUR{albums_changer_mode_document,#ENV{id_document}-#ENV{objet}-#ENV{id_objet}-#ENV{objet_precedent}-#ENV{id_objet_precedent},#SELF},ajax noscroll,'','',jQuery(function(){ajaxReload('albums_liste');ajaxReload("documents");})]
J’ai lu :
- Blocs ajax et ajaxReload - Programmer avec SPIP 4
- insert_head - Programmer avec SPIP 4 (onAjaxLoad qui ne me semble pas une bonne piste parce que j’aurais un boucle infinie)
- Contrôleur - Vue avec ajaxReload - SPIP-Contrib
- `{ajax}` pour les `inclure` - SPIP
- #BOUTON_ACTION - SPIP
- Astuces Actions et Boutons : je ne vois pas comment traduire le code de l’exemple en ce javascript
Une piste ?
PS : c’est pour Intégrer un bouton pour déplacer un document entre album et objet de rattachement (#3) · Tickets · spip-contrib-extensions / albumauto · GitLab et donc Pour en finir avec le mode=document (Portfolio) de SPIP, la suite (#55) · Tickets · spip-contrib-extensions / albums · GitLab