mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 16:03:59 +08:00
0f03884375
We had code to open the bookmark modal in two places -- the bookmark list and also from within a topic. This caused the two code paths to drift, as in the bookmark list we were not passing in the forTopic or autoDeletePreferences data into the modal, and we were also not refreshing the bookmark list when the bookmark was deleted from within the modal. This commit moves the modal opening code into an importable function from the controllers/bookmark module, and all callers have to do is pass it an instance of Bookmark and also options for what to do for the following: * onAfterSave * onAfterDelete * onCloseWithoutSaving |
||
---|---|---|
.. | ||
admin | ||
confirm-new-email | ||
discourse | ||
discourse-common | ||
discourse-hbr | ||
discourse-widget-hbs | ||
docs | ||
ember-addons | ||
locales | ||
pretty-text | ||
select-kit | ||
truth-helpers | ||
wizard | ||
.npmrc | ||
activate-account.js | ||
admin.js.erb | ||
app-boot.js | ||
application.js | ||
auto-redirect.js | ||
browser-detect.js | ||
browser-update.js | ||
discourse-loader.js | ||
discourse-shims.js | ||
embed-application.js | ||
ember_include.js.erb | ||
ember_jquery.js | ||
env.js | ||
google-tag-manager.js | ||
google-universal-analytics-v3.js | ||
google-universal-analytics-v4.js | ||
handlebars-shim.js | ||
main_include_admin.js | ||
markdown-it-bundle.js | ||
onpopstate-handler.js | ||
package.json | ||
polyfills.js | ||
pretty-text-bundle.js | ||
print-page.js | ||
service-worker.js.erb | ||
set-prototype-polyfill.js | ||
start-discourse.js | ||
template_include.js | ||
test-shims.js | ||
vendor.js | ||
widget-runtime.js | ||
wizard-application.js | ||
wizard-shims.js | ||
wizard-start.js | ||
wizard-vendor.js | ||
yarn.lock |