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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
9ed5a1af
Commit
9ed5a1af
authored
Mar 30, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #617 from iamntz/ssh_key_improvements
Automagically fills the email on add ssh key page
parents
1031ca9b
2b01c65e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
app/views/keys/new.html.haml
app/views/keys/new.html.haml
+11
-0
No files found.
app/views/keys/new.html.haml
View file @
9ed5a1af
%h3
New key
%h3
New key
%hr
%hr
=
render
'form'
=
render
'form'
:javascript
$
(
'
#key_key
'
).
on
(
'
keyup
'
,
function
(){
var
title
=
$
(
'
#key_title
'
),
val
=
$
(
'
#key_key
'
).
val
(),
key_mail
=
val
.
match
(
/
([
a-zA-Z0-9._-
]
+@
[
a-zA-Z0-9._-
]
+|
\.[
a-zA-Z0-9._-
]
+
)
/gi
);
if
(
key_mail
&&
key_mail
.
length
>
0
&&
title
.
val
()
==
''
){
$
(
'
#key_title
'
).
val
(
key_mail
);
}
});
\ No newline at end of file
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