From 96eb2d28670ac016c053203bbd64aaed0ac14873 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 14 Jan 2011 12:41:10 +0100 Subject: [PATCH] Restructure HTML to let the enter key work better. --- src/main/resources/templates/editProfile.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/resources/templates/editProfile.html b/src/main/resources/templates/editProfile.html index a58ace4..35ef68d 100644 --- a/src/main/resources/templates/editProfile.html +++ b/src/main/resources/templates/editProfile.html @@ -21,11 +21,11 @@ registerInputTextareaSwap("#sone #edit-profile input[name=birth-year]", birthYearDefaultText, "birth-year", true, true); }); getTranslation("WebInterface.DefaultText.FieldName", function(fieldNameDefaultText) { - registerInputTextareaSwap("#sone #edit-profile input[name=field-name]", fieldNameDefaultText, "field-name", true, true); + registerInputTextareaSwap("#sone #add-profile-field input[name=field-name]", fieldNameDefaultText, "field-name", true, true); }); /* hide all the labels. */ - $("#sone #edit-profile label").hide(); + $("#sone #edit-profile label, #sone #add-profile-field label").hide(); }); @@ -88,6 +88,15 @@ <%/foreach> +
+ +
+ + + +
+ +

<%= Page.EditProfile.Fields.AddField.Title|l10n|html>

@@ -101,10 +110,6 @@ -
- -
-
<%include include/tail.html> -- 2.7.4