Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-04-27 16:01:55 +0300
committerJames Lopez <james@jameslopez.es>2016-04-27 16:01:55 +0300
commit34c826a3110700f401fac4242f6a5dd15884f33d (patch)
tree58231a6cc0ec848e71d6681d5951a90c35a37756 /app/views/projects/new.html.haml
parentcbbc42e0c4e5888413a690a4e0760e3cadd55a63 (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.haml6
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());
+ });