Created
May 22, 2012 08:08
-
-
Save chtitux/2767492 to your computer and use it in GitHub Desktop.
Pouvoir valider avec [Entrée] sur http://www.afnic.fr/fr/produits-et-services/services/convertisseur-idn/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Actuellement sur http://www.afnic.fr/fr/produits-et-services/services/convertisseur-idn/ | |
$(document).ready(function () { | |
$("#button_domain_translator_44_domain").click(function() { | |
$.fancybox.showActivity(); | |
$.ajax({ | |
url: "/ajax/domain-translator/", | |
data: {domain: $("#domain_translator_44_domain").val() }, | |
success: function (data) { | |
$.fancybox(data); | |
} | |
}); | |
return false; | |
}); | |
// Insérer le code en dessous ici :) | |
}); | |
// À rajouter pour pouvoir valider avec la touche [Entrée] | |
$("form.domain_translator domain_translator_applist").submit(function() { | |
$.fancybox.showActivity(); | |
$.ajax({ | |
url: "/ajax/domain-translator/", | |
data: {domain: $("#domain_translator_44_domain").val() }, | |
success: function (data) { | |
$.fancybox(data); | |
} | |
}); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment