diff --git a/module/repo/js/create.js b/module/repo/js/create.js index c515bbd787..fc45001f45 100644 --- a/module/repo/js/create.js +++ b/module/repo/js/create.js @@ -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();