diff --git a/fr.js b/fr.js index 8980329..6ddf219 100644 --- a/fr.js +++ b/fr.js @@ -18,6 +18,7 @@ document.localisation = document.location; document.localisation.protocole = document.localisation.protocole; jQuery.fn.extend({ + clic: function (x) { return this.click(x); }, enfants: function () { return this.children(); }, dernier: function () { return this.last(); }, ajouter: function (x) { return this.append(x); } diff --git a/index.html b/index.html index 815a209..335e598 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ $( function() { $.recupererJSON( "traductions.json", function( traductions ) { construitListe(traductions); - $( "#lienChange" ).click( function() {changeDeSens(traductions);} ); + $( "#lienChange" ).clic( function() {changeDeSens(traductions);} ); }); });