diff options
author | James Lopez <james@jameslopez.es> | 2016-05-02 19:22:18 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-05-02 19:22:18 +0300 |
commit | 5a4f576359a71a57c70544568d9291cba53a2d39 (patch) | |
tree | c0c30452a6e74788809a945218153087be91cb59 /app/views/projects/new.html.haml | |
parent | b5f2a7e139f0c1803afb68c26042ce4f8cec9148 (diff) |
fixing issues with project members mapping. Also added some more JS magic to the import page
Diffstat (limited to 'app/views/projects/new.html.haml')
-rw-r--r-- | app/views/projects/new.html.haml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml index b3d755b3790..f9d9216f626 100644 --- a/app/views/projects/new.html.haml +++ b/app/views/projects/new.html.haml @@ -131,3 +131,14 @@ var _href = $("a.import_gitlab_project").attr("href"); $(".import_gitlab_project").attr("href", _href + '?namespace_id=' + $("#project_namespace_id").val() + '&path=' + $("#project_path").val()); }); + $('.import_gitlab_project').attr('disabled',true) + $('.import_gitlab_project').attr('title', 'Project path required.'); + $('#project_path').keyup(function(){ + if($(this).val().length !=0) { + $('.import_gitlab_project').attr('disabled', false); + $('.import_gitlab_project').attr('title',''); + } else { + $('.import_gitlab_project').attr('disabled',true); + $('.import_gitlab_project').attr('title', 'Project path required.'); + } + }) |