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