* Remove extra project selector in create view.

This commit is contained in:
dingguodong
2021-08-17 09:47:22 +08:00
parent cbddf5ced6
commit d23d3adf03
2 changed files with 1 additions and 7 deletions
+1 -3
View File
@@ -8,14 +8,12 @@ $(function()
$.get(url, function(response)
{
$('#projectID').html('').append(response);
$('#projectID').chosen().trigger("chosen:updated");;
$('#sourceProject').html('').append(response);
$('#sourceProject').chosen().trigger("chosen:updated");;
});
});
$('#projectID').change(function()
$('#sourceProject').change(function()
{
$option = $(this).find('option:selected');
$('#name').val($option.data('name'));
-4
View File
@@ -18,10 +18,6 @@
<th><?php echo $lang->repo->gitlabHost;?></th>
<td class='required'><?php echo html::select('gitlabID', $gitlabHosts, '', "class='form-control' placeholder='{$lang->repo->placeholder->gitlabHost}'");?>
</tr>
<tr>
<th><?php echo $lang->repo->gitlabProject;?></th>
<td class='required'><?php echo html::select('projectID', array(''), '', "class='form-control chosen'");?>
</tr>
<tr>
<th><?php echo $lang->mr->sourceProject;?></th>
<td class='required'>