summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-07 23:42:16 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-07 23:42:16 -0400
commit7febf59256ffd5ab091b4d1d687796e6abb7edf4 (patch)
tree7822c1049ba450988570ee5f7aff06fcf4d32492 /src/main/java/com/gitblit/wicket/pages
parent2dcec50d93913957798c5808f584277b29972b3c (diff)
downloadgitblit-7febf59256ffd5ab091b4d1d687796e6abb7edf4.tar.gz
gitblit-7febf59256ffd5ab091b4d1d687796e6abb7edf4.zip
Redirect to Summary page after editing a repository
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages')
-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 1f37763a..b08daef2 100644
--- a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
@@ -427,7 +427,11 @@ public class EditRepositoryPage extends RootSubPage {
return;
}
setRedirect(false);
- setResponsePage(RepositoriesPage.class);
+ if (isCreate) {
+ setResponsePage(RepositoriesPage.class);
+ } else {
+ setResponsePage(SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryModel.name));
+ }
}
};