discourse/plugins/discourse-local-dates
David Taylor 837bd5a6e5
FIX: Fix local-dates in non-post contexts, and in long topics (#14565)
- Stop looking up the topic title from the DOM. On long topics, the topic title may not be present. Instead, we can store the topic title in a data-title attribute during decorateCookedElement, and then access it later. This approach would also allow us to add customize titles per-local-date in future. If there is no topic title available (e.g. when local dates are used elsewhere in the UI), we use the site name to build a sensible default

- Don't require a postId for creating calendar events. We don't have postIds in non-post contexts. At the moment, the 'download ICS' function will fail without a valid postId, so that will need to be fixed in a future commit.
2021-10-08 20:22:52 +01:00
..
assets FIX: Fix local-dates in non-post contexts, and in long topics (#14565) 2021-10-08 20:22:52 +01:00
config FIX: Fix local-dates in non-post contexts, and in long topics (#14565) 2021-10-08 20:22:52 +01:00
lib/discourse_local_dates DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
spec FIX: converts “ and ” to " in local dates (#10987) 2020-10-21 17:16:36 +02:00
test/javascripts FIX: Fix local-dates in non-post contexts, and in long topics (#14565) 2021-10-08 20:22:52 +01:00
plugin.rb REFACTOR: local dates to improve reliability with DST and recurrence (#9379) 2020-04-08 08:53:21 +02:00