diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-07 23:42:16 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-04-07 23:42:16 -0400 |
commit | 7febf59256ffd5ab091b4d1d687796e6abb7edf4 (patch) | |
tree | 7822c1049ba450988570ee5f7aff06fcf4d32492 /src/main/java/com/gitblit/wicket/pages | |
parent | 2dcec50d93913957798c5808f584277b29972b3c (diff) | |
download | gitblit-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.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 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));
+ }
}
};
|