From 049c774680ef17c53139d5ccbecf5061d8146e81 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Wed, 25 May 2022 07:12:30 +0000 Subject: [PATCH] * Finish task #54983. --- module/repo/js/create.js | 16 ++++++++++++++++ module/repo/view/create.html.php | 17 ----------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/module/repo/js/create.js b/module/repo/js/create.js index c515bbd787..e07724a48d 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(); diff --git a/module/repo/view/create.html.php b/module/repo/view/create.html.php index fe6d91913d..3999ad4d98 100644 --- a/module/repo/view/create.html.php +++ b/module/repo/view/create.html.php @@ -108,21 +108,4 @@ -