* Finish task #54983.

This commit is contained in:
zhouxudong
2022-05-25 07:12:30 +00:00
parent 1a137e058e
commit 049c774680
2 changed files with 16 additions and 17 deletions
+16
View File
@@ -7,6 +7,22 @@ $(function()
$form.css('min-height', $form.height());
})
$('#repoForm').bind('DOMNodeInserted', function(e)
{
if($("#clientLabel").length > 0)
{
if($("#client").val() !== '' && $("#client").val().indexOf(" ") == -1)
{
$("#clientLabel").css('color','#0c64eb');
$("#client").attr('style', 'border-color: #0c64eb !important; box-shadow: 0 0 6px #0c64eb !important;');
}
else
{
$("#client").removeAttr("style");
}
}
});
$('#gitlabHost').change(function()
{
host = $('#gitlabHost').val();
-17
View File
@@ -108,21 +108,4 @@
</div>
</div>
</div>
<script>
$('#repoForm').bind('DOMNodeInserted', function(e)
{
if($("#clientLabel").length > 0)
{
if($("#client").val() !== '')
{
$("#clientLabel").css('color','#0c64eb');
$("#client").attr('style', 'border-color: #0c64eb !important;');
}
else
{
$("#client").removeAttr("style");
}
}
});
</script>
<?php include '../../common/view/footer.html.php'; ?>