]> source.dussan.org Git - gitblit.git/commitdiff
Redirect on canceling edit repository to Summary Page 39/39/1
authorJames Moger <james.moger@gitblit.com>
Tue, 8 Apr 2014 03:48:10 +0000 (23:48 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 8 Apr 2014 03:48:10 +0000 (23:48 -0400)
src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java

index b08daef2d384a0fe5451e08964731d4beb55862e..cd0da5f45452c564d7acf316c34be06dc7ccf4df 100644 (file)
@@ -604,7 +604,11 @@ public class EditRepositoryPage extends RootSubPage {
 \r
                        @Override\r
                        public void onSubmit() {\r
-                               setResponsePage(RepositoriesPage.class);\r
+                               if (isCreate) {\r
+                                       setResponsePage(RepositoriesPage.class);\r
+                               } else {\r
+                                       setResponsePage(SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryModel.name));\r
+                               }\r
                        }\r
                };\r
                cancel.setDefaultFormProcessing(false);\r