From: James Moger Date: Thu, 9 Feb 2012 22:41:23 +0000 (-0500) Subject: Rearranged button order to properly set default (issue 60) X-Git-Tag: v0.9.0~101 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5cc40c89abafdcccbc8a5b2cf3890780ccff908e;p=gitblit.git Rearranged button order to properly set default (issue 60) Also indicate password change aborted if it is canceled. --- diff --git a/src/com/gitblit/wicket/pages/ChangePasswordPage.html b/src/com/gitblit/wicket/pages/ChangePasswordPage.html index 938e0eca..e72ef1ed 100644 --- a/src/com/gitblit/wicket/pages/ChangePasswordPage.html +++ b/src/com/gitblit/wicket/pages/ChangePasswordPage.html @@ -19,8 +19,8 @@ - - + + diff --git a/src/com/gitblit/wicket/pages/ChangePasswordPage.java b/src/com/gitblit/wicket/pages/ChangePasswordPage.java index 2738a5fc..d7c774d9 100644 --- a/src/com/gitblit/wicket/pages/ChangePasswordPage.java +++ b/src/com/gitblit/wicket/pages/ChangePasswordPage.java @@ -120,6 +120,8 @@ public class ChangePasswordPage extends RootSubPage { @Override public void onSubmit() { + setRedirect(false); + error("Password change aborted."); setResponsePage(RepositoriesPage.class); } };