Use shorter way of installing the handler.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 14 Jan 2011 12:00:21 +0000 (13:00 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 14 Jan 2011 12:00:21 +0000 (13:00 +0100)
src/main/resources/templates/editProfile.html

index 35ef68d..ecdf2a7 100644 (file)
@@ -1,7 +1,7 @@
 <%include include/head.html>
 
        <script language="javascript">
-               $(document).ready(function() {
+               $(function() {
                        getTranslation("WebInterface.DefaultText.FirstName", function(firstNameDefaultText) {
                                registerInputTextareaSwap("#sone #edit-profile input[name=first-name]", firstNameDefaultText, "first-name", true, true);
                        });