This commit is contained in:
caoyanyi
2022-11-17 16:52:31 +08:00
parent 7d80105cff
commit 05d9cef073
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
$(function()
{
scmChanged(scm, true);
scmChanged(repoSCM, true);
$('#submit').mousedown(function()
{
$form = $(this).closest('form');
@@ -86,6 +86,7 @@ function scmChanged(scm, isFirstRequest = false)
if(scm == 'Git' || scm == 'Gitea' || scm == 'Gogs')
{
$('.account-fields').addClass('hidden');
if(['Git', 'Gitea', 'Gogs'].indexOf(repoSCM) === -1) $('#client').val('');
$('.tips-git').removeClass('hidden');
$('.tips-svn').addClass('hidden');
+1
View File
@@ -253,6 +253,7 @@ class repoModel extends model
public function update($id)
{
$repo = $this->getRepoByID($id);
if(!$this->checkConnection()) return false;
$isPipelineServer = in_array(strtolower($this->post->SCM), $this->config->repo->gitServiceList) ? true : false;
+1 -1
View File
@@ -18,7 +18,7 @@
.user-addon{padding-right: 16px; padding-left: 16px;}
</style>
<?php endif;?>
<?php js::set('scm', $repo->SCM);?>
<?php js::set('repoSCM', $repo->SCM);?>
<?php js::set('objectID', $objectID);?>
<div id='mainContent' class='main-row'>
<div class='main-col main-content'>