- [task#120961,doing,0.3h] delete gitfox codes.

This commit is contained in:
caoyanyi
2024-06-19 08:56:35 +08:00
committed by 田淑杰
parent 47e6d3c613
commit 0dfd29b44b
2 changed files with 4 additions and 16 deletions
+3 -3
View File
@@ -29,10 +29,10 @@ function getBranchPriv(project)
});
}
function onProjectChange()
window.onProjectChange = function()
{
var sourceProject = projectNamespace ? urlencode(projectNamespace) : projectID;
var branchUrl = $.createLink(hostType, 'ajaxGetProjectBranches', "id=" + (repo.SCM == 'GitFox' ? repo.id : hostID) + "&projectID=" + sourceProject);
var branchUrl = $.createLink(hostType, 'ajaxGetProjectBranches', "id=" + hostID + "&projectID=" + sourceProject);
$.ajaxSubmit(
{
url: branchUrl,
@@ -47,7 +47,7 @@ function onProjectChange()
},
});
if(repo.SCM != 'GitFox') getBranchPriv(projectID);
getBranchPriv(projectID);
}
function onSourceProjectChange()
+1 -13
View File
@@ -30,18 +30,6 @@ jsVar('noRepoLeft', $lang->repo->notice->noRepoLeft);
jsVar('hasProduct', !empty($products));
jsVar('appTab', $app->tab);
$scmList = array();
foreach($this->lang->repo->scmList as $scm => $scmName)
{
$item = array('text' => $scmName, 'value' => $scm);
if($scm == 'GitFox')
{
$item['content'] = array('html' => "<div class='flex clip'>{$scmName}</div><label class='label bg-primary-50 text-primary ml-2 flex-none'>{$this->lang->recommend}</label>", 'class' => 'w-full flex nowrap');
}
$scmList[] = $item;
}
formPanel
(
on::change('#SCM', 'onScmChange'),
@@ -59,7 +47,7 @@ formPanel
set::label($lang->product->typeAB),
set::required(true),
set::control('picker'),
set::items($scmList)
set::items($lang->repo->scmList)
),
h::span
(