* Fix typo.

This commit is contained in:
dingguodong
2024-04-29 19:24:26 +08:00
parent 504e7b589b
commit 08bcffcd59
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -893,14 +893,14 @@ class mr extends control
/**
* 获取分支权限。
* Ajax get branch pivs.
* Ajax get branch privileges.
*
* @param int $hostID
* @param string $project
* @access public
* @return void
*/
public function ajaxGetBranchPivs(int $hostID, string $project)
public function ajaxGetBranchPrivs(int $hostID, string $project)
{
$host = $this->loadModel('pipeline')->getByID($hostID);
if(in_array($host->type, array('gitea', 'gogs')))
+1 -1
View File
@@ -23,7 +23,7 @@ function urlencode(param)
function getBranchPriv(project)
{
var hostID = $('#hostID').val();
var branchUrl = createLink('mr', 'ajaxGetBranchPivs', "hostID=" + hostID + "&project=" + project);
var branchUrl = createLink('mr', 'ajaxGetBranchPrivs', "hostID=" + hostID + "&project=" + project);
$.get(branchUrl, function(response)
{
branchPrivs = eval('(' + response + ')');
+1 -1
View File
@@ -22,7 +22,7 @@ function urlencode(param)
function getBranchPriv(project)
{
var sourceProject = projectNamespace ? urlencode(projectNamespace) : project;
var branchUrl = $.createLink('mr', 'ajaxGetBranchPivs', "hostID=" + hostID + "&project=" + sourceProject);
var branchUrl = $.createLink('mr', 'ajaxGetBranchPrivs', "hostID=" + hostID + "&project=" + sourceProject);
$.get(branchUrl, function(response)
{
branchPrivs = eval('(' + response + ')');