Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
641febac
Commit
641febac
authored
Jul 20, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix JS - now tooltip and flash should show
parent
f3d03af4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+9
-9
No files found.
app/views/projects/new.html.haml
View file @
641febac
...
...
@@ -89,9 +89,9 @@
=
link_to
"#"
,
class:
'btn js-toggle-button import_git'
do
%i
.fa.fa-git
%span
Repo by URL
%div
%div
{
class:
'import_gitlab_project'
}
-
if
gitlab_project_import_enabled?
=
link_to
new_import_gitlab_project_path
,
class:
'btn import_gitlab_project project-submit'
do
=
link_to
new_import_gitlab_project_path
,
class:
'btn
btn_
import_gitlab_project project-submit'
do
%i
.fa.fa-gitlab
%span
GitLab export
...
...
@@ -130,16 +130,16 @@
$
(
"
.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
());
$
(
'
.
btn_
import_gitlab_project
'
).
bind
(
'
click
'
,
function
()
{
var
_href
=
$
(
"
a.
btn_
import_gitlab_project
"
).
attr
(
"
href
"
);
$
(
"
.
btn_
import_gitlab_project
"
).
attr
(
"
href
"
,
_href
+
'
?namespace_id=
'
+
$
(
"
#project_namespace_id
"
).
val
()
+
'
&path=
'
+
$
(
"
#project_path
"
).
val
());
});
$
(
'
.import_gitlab_project
'
).
attr
(
'
disabled
'
,
true
)
$
(
'
.
btn_
import_gitlab_project
'
).
attr
(
'
disabled
'
,
true
)
$
(
'
.import_gitlab_project
'
).
attr
(
'
title
'
,
'
Project path required.
'
);
$
(
'
.import_gitlab_project
'
).
click
(
function
(
event
)
{
if
(
$
(
'
.import_gitlab_project
'
).
attr
(
'
disabled
'
))
{
if
(
$
(
'
.
btn_
import_gitlab_project
'
).
attr
(
'
disabled
'
))
{
event
.
preventDefault
();
new
Flash
(
"
Please enter a path for the project to be imported to.
"
);
}
...
...
@@ -147,11 +147,11 @@
$
(
'
#project_path
'
).
keyup
(
function
(){
if
(
$
(
this
).
val
().
length
!=
0
)
{
$
(
'
.import_gitlab_project
'
).
attr
(
'
disabled
'
,
false
);
$
(
'
.
btn_
import_gitlab_project
'
).
attr
(
'
disabled
'
,
false
);
$
(
'
.import_gitlab_project
'
).
attr
(
'
title
'
,
''
);
$
(
"
.flash-container
"
).
html
(
""
)
}
else
{
$
(
'
.import_gitlab_project
'
).
attr
(
'
disabled
'
,
true
);
$
(
'
.
btn_
import_gitlab_project
'
).
attr
(
'
disabled
'
,
true
);
$
(
'
.import_gitlab_project
'
).
attr
(
'
title
'
,
'
Project path required.
'
);
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment