* finish task #8072.

This commit is contained in:
z
2020-10-09 13:20:00 +08:00
parent 12820bf546
commit c20b7e7a5c
5 changed files with 6 additions and 8 deletions
+1 -3
View File
@@ -100,13 +100,11 @@ $('#jkHost').change(function()
$('#jkJobBox .loading').remove();
$('#jkJobBox .input-group').append(html);
var dropDirection = $('#jkJobBox #jkJob option').length > 2 ? 'up' : 'auto';
$('#jkJobBox #jkJob').chosen({drop_direction: dropDirection});
$('#jkJobBox #jkJob').chosen({drop_direction: 'auto'});
})
})
$(function()
{
$('#jkHost').chosen({drop_direction: $('#jkHost option').length > 3 ? 'up' : 'auto'});
$('#triggerType').change();
});
+1 -3
View File
@@ -104,14 +104,12 @@ $('#jkHost').change(function()
$('#jkJobBox .loading').remove();
$('#jkJobBox .input-group').append(html);
var dropDirection = $('#jkJobBox #jkJob option').length > 2 ? 'up' : 'auto';
$('#jkJobBox #jkJob').val(jkJob).chosen({drop_direction: dropDirection});
$('#jkJobBox #jkJob').val(jkJob).chosen({drop_direction: 'auto'});
})
})
$(function()
{
$('#jkHost').chosen({drop_direction: $('#jkHost option').length > 3 ? 'up' : 'auto'});
$('#jkHost').change();
$('#triggerType').change();
});
+1 -1
View File
@@ -76,7 +76,7 @@
<th><?php echo $lang->job->jkHost; ?></th>
<td colspan='2'>
<div class='table-row'>
<div class='table-col'><?php echo html::select('jkHost', $jkHostList, '', "class='form-control'"); ?></div>
<div class='table-col'><?php echo html::select('jkHost', $jkHostList, '', "class='form-control chosen'"); ?></div>
<div id='jkJobBox' class='table-col'>
<div class='input-group'>
<span class='input-group-addon'><?php echo $lang->job->jkJob; ?></span>
+1 -1
View File
@@ -99,7 +99,7 @@
<th><?php echo $lang->job->jkHost; ?></th>
<td colspan='2'>
<div class='table-row'>
<div class='table-col'><?php echo html::select('jkHost', $jkHostList, $job->jkHost, "class='form-control'");?></div>
<div class='table-col'><?php echo html::select('jkHost', $jkHostList, $job->jkHost, "class='form-control chosen'");?></div>
<div id='jkJobBox' class='table-col'>
<div class='input-group'>
<span class='input-group-addon'><?php echo $lang->job->jkJob; ?></span>
+2
View File
@@ -58,3 +58,5 @@ a.showMoreImage:hover{opacity: 1;}
.color-darkblue:hover{background:rgb(0,0,139)}
.color-darkblue:focus{background:rgb(0,0,139)}
.margin-l-50px{margin-left:50px;}
.chosen-container .chosen-drop{z-index: 1100;}