From d040c9530509560bc022f59e8e87f0ead0832b36 Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 2 May 2017 09:10:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/syllabuses_controller.rb | 2 +- app/helpers/watchers_helper.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/syllabuses_controller.rb b/app/controllers/syllabuses_controller.rb index c6c5304b0..edce4506f 100644 --- a/app/controllers/syllabuses_controller.rb +++ b/app/controllers/syllabuses_controller.rb @@ -47,7 +47,7 @@ class SyllabusesController < ApplicationController member = SyllabusMember.create(:user_id => @syllabus.user_id, :rank => 1) @syllabus.syllabus_members << member respond_to do |format| - flash[:notice] = l(:notice_successful_create) + #flash[:notice] = l(:notice_successful_create) format.html {redirect_to syllabus_path(@syllabus)} format.api { render :action => 'show', :status => :created, :location => url_for(:controller => 'syllabuses', :action => 'show', :id => @syllabus.id) } end diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb index ff25f6bab..50d8f0988 100644 --- a/app/helpers/watchers_helper.rb +++ b/app/helpers/watchers_helper.rb @@ -275,10 +275,10 @@ module WatchersHelper title = watched ? '取消关注' : '添加关注' if target != user link_to text, url, :remote => true, :method => method, :remote => true, - :class => "fl font-14 user_watch",:id => id, :title => title + :class => "fr font-14 user_watch",:id => id, :title => title else link_to "关注", "javascript:void(0)", :remote => true, :method => method, - :class => "fl font-14 user_watch", :id => id, :title => title + :class => "fr font-14 user_watch", :id => id, :title => title end end