docbrown/app/assets/javascripts
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
..
initializers [deploy] Fix dropdowns breaking after adding comment (#10976) 2020-10-21 08:15:10 -04:00
lib [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
utilities Remove flare tag from title and hightlight it within the tags row (#10528) 2020-10-15 16:09:14 +02:00
.eslintrc.js Replace globals with node env (#10767) 2020-10-14 17:05:38 -04:00
application.js Initial commit 2018-02-28 16:11:08 -05:00
base.js.erb [deploy] Add scroll to Anchor (#10464) 2020-10-07 12:55:57 -05:00
initializePage.js Add Native bridge video support (#9303) 2020-07-20 11:22:32 -04:00
internal.js Initial commit 2018-02-28 16:11:08 -05:00
jquery_s3_upload.js [WIP] Add super beta video upload (#277) 2018-05-03 16:27:52 -04:00
serviceworker-companion.js Fixed some more Frontend Lint Issues (#3792) 2019-08-23 10:21:28 -04:00