From: David ‘Bombe’ Roden Date: Thu, 13 Jan 2011 12:04:41 +0000 (+0100) Subject: Name button differently (and all using the same style). X-Git-Tag: 0.4^2~9^2~33 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0ac0337b61614cf23833f866fd8f0568d0f7bf58;p=Sone.git Name button differently (and all using the same style). --- diff --git a/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java b/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java index 5b2c301..4f7e1f3 100644 --- a/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java +++ b/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java @@ -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(); diff --git a/src/main/resources/templates/editProfile.html b/src/main/resources/templates/editProfile.html index e54c347..918b0c1 100644 --- a/src/main/resources/templates/editProfile.html +++ b/src/main/resources/templates/editProfile.html @@ -67,7 +67,7 @@
- +