- [task#120961,doing,0.3h] delete gitfox codes.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user