Files
EasySoft-ZenTaoPMS/module/mr/js/create.js
2021-08-16 14:37:04 +08:00

24 lines
555 B
JavaScript

$(function()
{
$('#gitlabID').change(function()
{
host = $('#gitlabID').val();
url = createLink('repo', 'ajaxgetgitlabprojects', "host=" + host);
if(host == '') return false;
$.get(url, function(response)
{
$('#projectID').html('').append(response);
$('#projectID').chosen().trigger("chosen:updated");;
});
});
$('#projectID').change(function()
{
$option = $(this).find('option:selected');
$('#name').val($option.data('name'));
});
});