Name button differently (and all using the same style).
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 13 Jan 2011 12:04:41 +0000 (13:04 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 13 Jan 2011 12:04:41 +0000 (13:04 +0100)
src/main/java/net/pterodactylus/sone/web/EditProfilePage.java
src/main/resources/templates/editProfile.html

index 5b2c301..4f7e1f3 100644 (file)
@@ -64,7 +64,7 @@ public class EditProfilePage extends SoneTemplatePage {
                Integer birthMonth = profile.getBirthMonth();
                Integer birthYear = profile.getBirthYear();
                if (request.getMethod() == Method.POST) {
-                       if (request.getHttpRequest().getPartAsStringFailsafe("saveProfile", 4).equals("true")) {
+                       if (request.getHttpRequest().getPartAsStringFailsafe("save-profile", 4).equals("true")) {
                                firstName = request.getHttpRequest().getPartAsStringFailsafe("first-name", 256).trim();
                                middleName = request.getHttpRequest().getPartAsStringFailsafe("middle-name", 256).trim();
                                lastName = request.getHttpRequest().getPartAsStringFailsafe("last-name", 256).trim();
index e54c347..918b0c1 100644 (file)
@@ -67,7 +67,7 @@
                </div>
 
                <div>
-                       <button type="submit" name="saveProfile" value="true"><%= Page.EditProfile.Button.Save|l10n|html></button>
+                       <button type="submit" name="save-profile" value="true"><%= Page.EditProfile.Button.Save|l10n|html></button>
                </div>
 
        </form>