themotte / rDrama

This code runs https://www.themotte.org. Forked from https://github.com/Aevann1/rDrama
GNU Affero General Public License v3.0
25 stars 31 forks source link

fix: username popover listener on comment reply #613

Closed TLSM closed 1 year ago

TLSM commented 1 year ago

Fixes #612. Ports in an existing working fix from upstream with the change to bs_trigger. Also a stylistic improvement on the preceding line I noticed while porting it.

bs_trigger is what attaches the event listeners for the Boostrap popovers. It wasn't being called on the new elements, so they get no user card. It is now, so it does. Calling it on the comment form element doesn't work here because, unlike in an earlier stage of the codebase (which I think the fork occured during the transition of) put replies into a dedicated element rather than replacing the reply form.