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:
authorRobert Speicher <rspeicher@gmail.com>2016-03-03 23:10:15 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-03-04 00:13:56 +0300
commit9db57bc65a53b19714e7b867bdb75c85058013cf (patch)
tree70b37f54c71302d4bada6d502c939cd187a0dc3c /app/views/profiles
parent2c760487be653a3cc4f9214a72d9c9149147263e (diff)
Move SSH key JS to Profile CS class
Diffstat (limited to 'app/views/profiles')
-rw-r--r--app/views/profiles/keys/new.html.haml11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/views/profiles/keys/new.html.haml b/app/views/profiles/keys/new.html.haml
index 13a18269d11..3470b83def5 100644
--- a/app/views/profiles/keys/new.html.haml
+++ b/app/views/profiles/keys/new.html.haml
@@ -4,14 +4,3 @@
Paste your public key here. Read more about how to generate a key on #{link_to "the SSH help page", help_page_path("ssh", "README")}.
%hr
= render 'form'
-
-:javascript
- $('#key_key').on('focusout', function(){
- var title = $('#key_title'),
- val = $('#key_key').val(),
- comment = val.match(/^\S+ \S+ (.+)\n?$/);
-
- if( comment && comment.length > 1 && title.val() == '' ){
- $('#key_title').val( comment[1] ).change();
- }
- });