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. |
||
|---|---|---|
| .. | ||
| admin | ||
| confirm-new-email | ||
| discourse/app | ||
| discourse-common | ||
| docs | ||
| ember-addons | ||
| locales | ||
| pretty-text | ||
| select-kit | ||
| wizard | ||
| activate-account.js | ||
| admin.js.erb | ||
| application.js | ||
| auto-redirect.js | ||
| browser-detect.js | ||
| deprecated.js | ||
| discourse-loader.js | ||
| discourse-objects.js | ||
| embed-application.js | ||
| ember_include.js.erb | ||
| ember_jquery.js | ||
| ember-shim.js | ||
| env.js | ||
| google-tag-manager.js | ||
| google-universal-analytics.js | ||
| main_include_admin.js | ||
| markdown-it-bundle.js | ||
| onpopstate-handler.js | ||
| polyfills.js | ||
| preload-application-data.js | ||
| preload-store.js | ||
| pretty-text-bundle.js | ||
| print-page.js | ||
| service-worker.js.erb | ||
| set-prototype-polyfill.js | ||
| template_include.js | ||
| template_include.js.erb | ||
| vendor.js | ||
| wizard-application.js | ||
| wizard-start.js | ||
| wizard-vendor.js | ||