mirror of
https://github.com/discourse/discourse.git
synced 2025-01-20 19:21:45 +08:00
2c6d6dfd05
This commit reworks slightly the `toggleBookmark` and `toggleBookmarkTopic` functions. - Pressing [f] (toggleBookmarkTopic) - a topic list item is selected, we attempt to toggle the related topic - a post is selected, we bookmark the current topic - nothing is selected, if there's a currentTopic we bookmark it - Pressing [b] (toggleBookmark) - a post is selected, we bookmark it - a topic list item is selected, we attempt to toggle the related topic - nothing is selected, if there's a currentTopic we bookmark it Note this, commit also reduces jquery usage, a bug where the [f] shortcut was propagated to the modal input, and fixes bug when bookmarking a topic list item on the front page and the firstPost couldn't be found. |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |