Skip to content

Commit

Permalink
Rearranged button order to properly set default (issue 60)
Browse files Browse the repository at this point in the history
Also indicate password change aborted if it is canceled.
  • Loading branch information
gitblit committed Feb 9, 2012
1 parent 4b9d645 commit 5cc40c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/gitblit/wicket/pages/ChangePasswordPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<td class="edit"><input type="password" wicket:id="confirmPassword" size="30" tabindex="2" /></td>
</tr>
</table>
<input class="btn" type="submit" wicket:message="value:gb.cancel" wicket:id="cancel" tabindex="3" />
<input class="btn primary" type="submit" wicket:message="value:gb.save" wicket:id="save" tabindex="4" />
<input class="btn primary" type="submit" wicket:message="value:gb.save" wicket:id="save" tabindex="3" />
<input class="btn" type="submit" wicket:message="value:gb.cancel" wicket:id="cancel" tabindex="4" />
</center>
</form>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/com/gitblit/wicket/pages/ChangePasswordPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ public void onSubmit() {

@Override
public void onSubmit() {
setRedirect(false);
error("Password change aborted.");
setResponsePage(RepositoriesPage.class);
}
};
Expand Down

0 comments on commit 5cc40c8

Please sign in to comment.