docbrown/app/assets
Elliot 6a1f560f65
[deploy] Fix dropdowns breaking after adding comment (#10976)
What was wrong?
`initializeCommentDropdown` is called when a new comment is added.
`initializeCommentDropdown` calls `addDropdownListener(dropdown)` on all
`.dropbtn` elements. Elements with the `.dropbtn` class already exist on
the page so an extra listener is added to it whenever a comment is
added.

How was it fixed?
Whenever a dropdown listener is added to an element with the
`.dropbtn` class, an attribute is set on that element so we know it
already has a dropdown listener. When we add listeners to elements with
the `.dropbtn` class in the future, we don't add them to elements with
the attribute.
2020-10-21 08:15:10 -04:00
..
config [deploy] Remove need for ENV vars during asset precompile (#10349) 2020-09-16 13:57:05 -04:00
fonts feat: add per-user Open Dyslexic font setting (#5037) [deploy] 2020-01-20 18:23:57 -05:00
images Begin cleaning up and generalizing events (#10837) 2020-10-15 11:07:42 -04:00
javascripts [deploy] Fix dropdowns breaking after adding comment (#10976) 2020-10-21 08:15:10 -04:00
stylesheets Fill organization userpic background fully to avoid empty corners (#10944) 2020-10-21 12:11:41 +02:00