修改bug《新建版本时输入wiki页面为非汉字类型且长度够长,点击提交报500错误》

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2014-10-28 19:48:51 +08:00
parent 521158a086
commit 95c2edad20
3 changed files with 4 additions and 2 deletions

View File

@ -275,6 +275,8 @@ class FilesController < ApplicationController
respond_to do |format| respond_to do |format|
format.js format.js
end end
end end
end end

View File

@ -105,7 +105,7 @@
} }
function course_attachmenttypes_searchex(value) { function course_attachmenttypes_searchex(value) {
<% if @course%> <% if @course %>
$.ajax({ $.ajax({
url: '<%=getattachtype_course_files_path(course_id: @course)%>', url: '<%=getattachtype_course_files_path(course_id: @course)%>',
type: "POST", type: "POST",

View File

@ -15,7 +15,7 @@
</p> </p>
<p style="margin-left:-20px;"> <p style="margin-left:-20px;">
<span style="margin-left:10px;"> <span style="margin-left:10px;">
<%= f.text_field :wiki_page_title, :label => :label_wiki_page, :maxlength => 60, :disabled => @project.wiki.nil? %> <%= f.text_field :wiki_page_title, :label => :label_wiki_page, :disabled => @project.wiki.nil? %>
</span> </span>
</p> </p>
<p style="margin-left:-20px;"> <p style="margin-left:-20px;">