summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-07 23:48:10 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-07 23:48:10 -0400
commite86fd161d977602329704537726a0a55dc7e34fe (patch)
treeaa5946731bee0fc229873bd97e4c25ff84307045
parent0f86496c2dce29b459fc73d6473017b2b1ec5c36 (diff)
downloadgitblit-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.java6
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);