From 43d19d7d52bb00dd38574bf56eaece2647a180e4 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Mon, 4 Dec 2017 01:31:06 +0900 Subject: [PATCH] Add create new repository from existing git repository option --- .../gitbucket/core/account/newrepo.scala.html | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/src/main/twirl/gitbucket/core/account/newrepo.scala.html b/src/main/twirl/gitbucket/core/account/newrepo.scala.html index 6f6397b9c..d094a5557 100644 --- a/src/main/twirl/gitbucket/core/account/newrepo.scala.html +++ b/src/main/twirl/gitbucket/core/account/newrepo.scala.html @@ -39,7 +39,7 @@ isCreateRepoOptionPublic: Boolean)(implicit context: gitbucket.core.controller.C
- +
-
+
@@ -83,4 +98,8 @@ $('#owner-dropdown a').click(function(){ $('#owner-dropdown span.strong').html($(this).find('span').html()); }); + +$('input[name=createRepository]').click(function(){ + $('#existingRepositoryUrl').prop('disabled', $('input[name=createRepository]:checked').val() != 'COPY'); +});