diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/key.rb | 2 | ||||
-rw-r--r-- | app/views/keys/create.js.haml | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/models/key.rb b/app/models/key.rb index 5fe30734476..8231c30ce1f 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -8,7 +8,7 @@ class Key < ActiveRecord::Base validates :key, :presence => true, :uniqueness => true, - :length => { :within => 0..1600 } + :length => { :within => 0..5000 } before_save :set_identifier after_save :update_gitosis diff --git a/app/views/keys/create.js.haml b/app/views/keys/create.js.haml index 7b92be77180..a995c355e3c 100644 --- a/app/views/keys/create.js.haml +++ b/app/views/keys/create.js.haml @@ -2,6 +2,7 @@ :plain $("#new_key_dialog").dialog("close"); $("#keys-table").append("#{escape_javascript(render(:partial => 'show', :locals => {:key => @key} ))}"); + $("#no_ssh_key_defined").hide(); - else :plain $("#new_key_dialog").empty(); |