* Fix bug #29957.
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user