Front end code is complete for changing categories of topics in bulk

This commit is contained in:
Robin Ward
2014-01-29 15:48:52 -05:00
parent 6ee266c7ee
commit 0c73eb8ce1
14 changed files with 85 additions and 14 deletions

View File

@ -19,7 +19,8 @@ class TopicsController < ApplicationController
:move_posts,
:merge_topic,
:clear_pin,
:autoclose]
:autoclose,
:bulk]
before_filter :consider_user_for_promotion, only: :show
@ -266,6 +267,11 @@ class TopicsController < ApplicationController
render 'topics/show', formats: [:rss]
end
def bulk
topic_ids = params.require(:topic_ids).map {|t| t.to_i}
render_json_dump topic_ids: topic_ids
end
private
def toggle_mute