oppurtunity: focus on #new_name
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 21 Oct 2015 19:47:47 +0000 (15:47 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 21 Oct 2015 22:34:04 +0000 (18:34 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/opportunity/src/templates/meetup.nit

index ccb432a..206468f 100644 (file)
@@ -274,8 +274,8 @@ class OpportunityMeetupPage
 
                // Retrieve the last client-side participant's name
                window.onload = function () {
-                       var name_field = document.getElementById("new_name");
-                       name_field.value = get_cookie("opportunity_participant_name");
+                       $("#new_name").val(get_cookie("opportunity_participant_name"));
+                       $("#new_name").focus();
 
                        update_scores();
                }