* Import gitlab issue to task(staging).
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('[name^=productList').change(function()
|
||||
{
|
||||
var execution = $(this);
|
||||
host = execution.val();
|
||||
if(host == '') return false;
|
||||
executions = '';
|
||||
url = createLink('gitlab', 'ajaxGetExecutionsByProduct', "host=" + host);
|
||||
|
||||
$.get(url, function(response)
|
||||
{
|
||||
execution = execution.parent().next().find('select');
|
||||
execution.html('').append(response);
|
||||
execution.chosen().trigger("chosen:updated");
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -1,19 +0,0 @@
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('[name^=gitlabID').change(function()
|
||||
{
|
||||
var gitlab = $(this);
|
||||
host = gitlab.val();
|
||||
if(host == '') return false;
|
||||
projects = '';
|
||||
url = createLink('repo', 'ajaxgetgitlabprojects', "host=" + host);
|
||||
|
||||
$.get(url, function(response)
|
||||
{
|
||||
project = gitlab.parent().next().find('select');
|
||||
project.html('').append(response);
|
||||
project.chosen().trigger("chosen:updated");
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user