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