This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Martin Brennan 452d0c868f
FIX: Ensure first post is loaded before trying to bookmark topic (#9382)
Load first post if not loaded when trying to bookmark topic

* if the first post was not loaded we could not bookmark it because
  now we call the toggleBookmarkReminder function on an actual post
  to open the modal window
* add a firstPost function to the topic model to get the first post
  from the stream if it is loaded and if not do a GET request to load
  it
* use the firstPost promise when bookmarking topic
2020-04-09 09:42:03 +10:00
..
adapters FEATURE: Support for publishing topics as pages (#9364) 2020-04-08 12:52:36 -04:00
components DEV: Replace jquery.putCursorAtEnd (#9390) 2020-04-08 16:13:02 -04:00
controllers FIX: Ensure first post is loaded before trying to bookmark topic (#9382) 2020-04-09 09:42:03 +10:00
helpers Last ES6 files in our app/assets/javascripts 2020-03-25 12:30:20 -04:00
initializers FEATURE: Bookmark keyboard shortcuts (#9318) 2020-04-07 14:03:15 +10:00
lib DEV: Replace jquery.putCursorAtEnd (#9390) 2020-04-08 16:13:02 -04:00
mixins DEV: prefer Date.now() over new Date().getTime() 2020-03-26 17:36:53 +11:00
models FIX: Ensure first post is loaded before trying to bookmark topic (#9382) 2020-04-09 09:42:03 +10:00
pre-initializers Rename many .js.es6 files to .js 2020-03-12 13:29:55 -04:00
raw-views Rename many .js.es6 files to .js 2020-03-12 13:29:55 -04:00
routes FEATURE: Support for publishing topics as pages (#9364) 2020-04-08 12:52:36 -04:00
services Rename many .js.es6 files to .js 2020-03-12 13:29:55 -04:00
templates FIX: Labels for modal close and dismiss-error buttons 2020-04-08 11:56:29 -07:00
widgets FEATURE: Support for publishing topics as pages (#9364) 2020-04-08 12:52:36 -04:00
mapping-router.js Rename many .js.es6 files to .js 2020-03-12 13:29:55 -04:00