diff options
author | James Lopez <james@jameslopez.es> | 2016-04-27 16:01:55 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-04-27 16:01:55 +0300 |
commit | 34c826a3110700f401fac4242f6a5dd15884f33d (patch) | |
tree | 58231a6cc0ec848e71d6681d5951a90c35a37756 /app/views/projects/new.html.haml | |
parent | cbbc42e0c4e5888413a690a4e0760e3cadd55a63 (diff) |
some JS magic to pass namespace and path importing projects
Diffstat (limited to 'app/views/projects/new.html.haml')
-rw-r--r-- | app/views/projects/new.html.haml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml index d4bb57aafc7..b3d755b3790 100644 --- a/app/views/projects/new.html.haml +++ b/app/views/projects/new.html.haml @@ -91,7 +91,7 @@ %span Repo by URL - if gitlab_project_import_enabled? - = link_to new_import_gitlab_project_path, class: 'btn import_gitlab_project' do + = link_to new_import_gitlab_project_path, class: 'btn import_gitlab_project project-submit' do %i.fa.fa-gitlab %span GitLab project @@ -127,3 +127,7 @@ $('.modal-header .close').bind('click', function() { $(".modal").hide(); }); + $('.import_gitlab_project').bind('click', function() { + var _href = $("a.import_gitlab_project").attr("href"); + $(".import_gitlab_project").attr("href", _href + '?namespace_id=' + $("#project_namespace_id").val() + '&path=' + $("#project_path").val()); + }); |