js:clicktoedit

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
js:clicktoedit [2023/01/15 18:11] avillepreuxjs:clicktoedit [2023/01/15 18:19] (Version actuelle) avillepreux
Ligne 55: Ligne 55:
                     console.log("EDIT anchor", a);                     console.log("EDIT anchor", a);
                                          
-                    var a = jQuery(this).prevAll('[class^="level"]:eq(0)').prevAll('.anchorjs-link:eq(0)'); +                    var b = a.prevAll('.anchorjs-link:eq(0)')
-                    console.log("EDIT anchor", a);+                    console.log("EDIT anchor", b); 
 +                     
 +                    var c = a.prevAll('*:eq(0)'); 
 +                    console.log("EDIT anchor", c);
                                                          
 +                    var d = a.prevAll('h3');
 +                    console.log("EDIT anchor", d);
 +                    
                     // find the closest edit button form to the element double clicked (downwards) and submit the form                     // find the closest edit button form to the element double clicked (downwards) and submit the form
                                                                  
  • js/clicktoedit.1673802690.txt.gz
  • Dernière modification : 2023/01/15 18:11
  • de avillepreux