diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-07 23:48:10 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-04-07 23:48:10 -0400 |
commit | e86fd161d977602329704537726a0a55dc7e34fe (patch) | |
tree | aa5946731bee0fc229873bd97e4c25ff84307045 | |
parent | 0f86496c2dce29b459fc73d6473017b2b1ec5c36 (diff) | |
download | gitblit-e86fd161d977602329704537726a0a55dc7e34fe.tar.gz gitblit-e86fd161d977602329704537726a0a55dc7e34fe.zip |
Redirect on canceling edit repository to Summary Page
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java index b08daef2..cd0da5f4 100644 --- a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java @@ -604,7 +604,11 @@ public class EditRepositoryPage extends RootSubPage { @Override
public void onSubmit() {
- setResponsePage(RepositoriesPage.class);
+ if (isCreate) {
+ setResponsePage(RepositoriesPage.class);
+ } else {
+ setResponsePage(SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryModel.name));
+ }
}
};
cancel.setDefaultFormProcessing(false);
|