Différences
Ci-dessous, les différences entre deux révisions de la page.
| 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:06] – avillepreux | js:clicktoedit [2023/01/15 18:19] (Version actuelle) – avillepreux | ||
|---|---|---|---|
| Ligne 52: | Ligne 52: | ||
| // find the closest anchor link to the element double clicked (upwards) | // find the closest anchor link to the element double clicked (upwards) | ||
| | | ||
| - | var a = jQuery(this).prevAll([' | + | var a = jQuery(this).prevAll(' |
| console.log(" | console.log(" | ||
| | | ||
| - | var a = jQuery(this).prevAll(['class^="level"]').prevAll(' | + | var b = a.prevAll(' |
| - | console.log(" | + | console.log("EDIT anchor", b); |
| + | |||
| + | var c = a.prevAll(' | ||
| + | console.log(" | ||
| | | ||
| + | var d = a.prevAll(' | ||
| + | console.log(" | ||
| + | | ||
| // 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 | ||
| | | ||