From 383d62a353ec9442f929a33b8e84ee3f60d4be3c Mon Sep 17 00:00:00 2001 From: yanxd Date: Wed, 9 Apr 2014 11:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=96=87=E5=AD=97=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/project.rb | 2 +- app/views/projects/homework.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index fd576b63..8f953017 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 ad8aad58..b612bd94 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); }