« MediaWiki:Gadget-AncreTitres.js » : différence entre les versions

Contenu supprimé Contenu ajouté
Seb35 (discussion | contributions)
m typo
Bayo (discussion | contributions)
me semble que c'est la forme recommencdée
Ligne 53 :
link = document.createElement('a');
link.setAttribute("ancre", wgServer + "/w/index.php?title=" + wgPageName + "#" + ancre_nom) ;
link.setAttribute("onclickhref", "javascript:window.prompt('Lien : ', this.getAttribute('ancre'));");
link.appendChild(small);
titre_courant.appendChild(link);
Ligne 66 :
link = document.createElement('a');
link.setAttribute("ancre", "[[" + wgPageName + "#" + ancre_nom + "]]");
link.setAttribute("onclickhref", "javascript:window.prompt('Lien : ', this.getAttribute('ancre'));");
link.appendChild(small);
titre_courant.appendChild(link);