MarseyWorld/files
mummified-corroding-granny 786ba6aa56 moved toggleelement to register_new_elements() (#111)
We currently cannot see (toggle the dropdown/button) reports that are hidden behind the "show more" (comments) button. This PR fixes that.

Example of what is happening without this PR:
1. open megathread. The thread is long includes hundreds of comments implying need to click "show more" (comments) button
2. without clicking any "show more" (comments) button, click the flaggers button on one of the first comments
3. flaggers are presented as expected
4. click the "show more" (comments) button at the end
5. click the flaggers button on one of the comments that was hidden behind the "show more" (comments) button
6. the button does nothing and has no event listenner associated

With this PR:
1. all flaggers buttons work regardless if hidden behind "Show More" (comments) or not. Tested up to two "Show More" (comments) buttons

I did the PR this way because the view_more button calls register_new_elements() and not bottom.js as a whole

There are other things using data-toggleelement like the undelete button on comments and the Preview button on /submit. Both of those still work as expected

Reviewed-on: rDrama/rDrama#111
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-06 02:07:18 +00:00
..
assets moved toggleelement to register_new_elements() (#111) 2023-02-06 02:07:18 +00:00
classes fix-small-tisms that I had piled up in my todo (#109) 2023-02-02 16:54:52 +00:00
helpers same as last commit 2023-02-03 02:12:19 +02:00
routes minor change to print statement 2023-02-03 05:05:16 +02:00
templates Post Meta: prevent/minimize meta elements getting split between multiple lines (#110) 2023-02-03 19:55:19 +00:00
__init__.py
__main__.py re-enable autocheck for ratelimiting 2023-01-23 04:38:39 +02:00
cli.py