From 95c2edad208562133f9f1527a526f602f15812d9 Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Tue, 28 Oct 2014 19:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=E3=80=8A=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E7=89=88=E6=9C=AC=E6=97=B6=E8=BE=93=E5=85=A5wiki?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=BA=E9=9D=9E=E6=B1=89=E5=AD=97=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=94=E9=95=BF=E5=BA=A6=E5=A4=9F=E9=95=BF=EF=BC=8C?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=8F=90=E4=BA=A4=E6=8A=A5500=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E3=80=8B=20Signed-off-by:=20alan=20<547533434@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/files_controller.rb | 2 ++ app/views/files/index.html.erb | 2 +- app/views/versions/_form.html.erb | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb index ee524ec55..0ee38f3f5 100644 --- a/app/controllers/files_controller.rb +++ b/app/controllers/files_controller.rb @@ -275,6 +275,8 @@ class FilesController < ApplicationController respond_to do |format| format.js + + end end end diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index fcf54de75..65db74006 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -105,7 +105,7 @@ } function course_attachmenttypes_searchex(value) { - <% if @course%> + <% if @course %> $.ajax({ url: '<%=getattachtype_course_files_path(course_id: @course)%>', type: "POST", diff --git a/app/views/versions/_form.html.erb b/app/views/versions/_form.html.erb index df3b2ec4b..72c95ad7f 100644 --- a/app/views/versions/_form.html.erb +++ b/app/views/versions/_form.html.erb @@ -15,7 +15,7 @@

- <%= 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? %>