diff --git a/app/models/project.rb b/app/models/project.rb index fd576b637..8f953017a 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -109,7 +109,7 @@ class Project < ActiveRecord::Base validates_presence_of :name, :identifier validates_uniqueness_of :identifier validates_associated :repository, :wiki - validates_length_of :description, :maximum => 255 + validates_length_of :description, :maximum => 1000 validates_length_of :name, :maximum => 255 validates_length_of :homepage, :maximum => 255 validates_length_of :identifier, :in => 1..IDENTIFIER_MAX_LENGTH diff --git a/app/views/projects/homework.html.erb b/app/views/projects/homework.html.erb index ad8aad583..b612bd94f 100644 --- a/app/views/projects/homework.html.erb +++ b/app/views/projects/homework.html.erb @@ -51,7 +51,7 @@ function showSubH(/* ... */){ } } function deal_error (argument) { - $('#OpenWindow-content').html(' ' + argument.status + argument.statusText + ' <\/span>\n'); + $('#OpenWindow-content').html(' Network Error:
http_status:' + argument.status + '
statusText:' + argument.statusText + ' <\/span>\n'); } $.post(post_url,{}, deal_post).error(deal_error); }