FIX: bookmark topic was not working intuitively

- explicitly call out "clear bookmarks"
- correct keyboard shortcuts
- properly remove bookmarks when toggeling
This commit is contained in:
Sam
2015-02-19 10:58:57 +11:00
parent def034cd08
commit b041b3f67f
9 changed files with 125 additions and 26 deletions

View File

@ -285,7 +285,9 @@ class PostsController < ApplicationController
PostAction.remove_act(current_user, post, PostActionType.types[:bookmark])
end
render nothing: true
tu = TopicUser.get(post.topic, current_user)
render_json_dump(topic_bookmarked: tu.bookmarked)
end
def wiki