forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/assets/js
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
..
admin fix IMAGE_FORMATS 2023-01-01 05:38:37 +02:00
casino make all images have loading="lazy" 2023-01-27 19:55:25 +02:00
vendor fix console error 2023-01-28 16:53:05 +02:00
award_modal.js use addEventListener instead of onclick 2023-01-28 16:27:52 +02:00
ban_modal.js use addEventListener instead of on 2023-01-29 11:19:04 +02:00
banned_domains.js stop using inline style/script elements 2022-12-29 16:20:27 +02:00
bottom.js moved toggleelement to register_new_elements() (#111) 2023-02-06 02:07:18 +00:00
bugs.js sneed 2022-07-16 21:00:02 +00:00
chat.js fix chat msg deletion 2023-01-29 11:27:47 +02:00
comment_info.js stop using inline style/script elements 2022-12-29 16:20:27 +02:00
comments+submission_listing.js refactor popovers 2023-02-02 22:07:14 +02:00
comments.js the worst fucking code you'll ever see 2022-12-30 14:14:18 +02:00
comments_admin.js same as last commit 2022-12-30 14:52:59 +02:00
comments_v.js use addEventListener instead of onclick 2023-01-28 16:27:52 +02:00
contact.js allow pasting images in initial modmail and DMs 2023-01-23 14:00:04 +02:00
core.js remove duplicate shit in core.js 2023-02-02 19:15:25 +02:00
css.js stop using inline style/script elements 2022-12-29 16:20:27 +02:00
delete_post_modal.js use addEventListener instead of onclick 2023-01-28 16:27:52 +02:00
emoji_modal.js remove types from emoji_modal.js 2023-02-02 22:07:28 +02:00
fart.js get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
fireflies.js make max num of fireflies same max num of bugs 2022-09-20 19:27:41 +02:00
fireworks.js convert "var" to "let" and "const" 2022-12-04 17:40:32 +02:00
flairchanged.js stop using inline style/script elements 2022-12-29 16:20:27 +02:00
followers.js rename postToast -> postToastSwitch and postToastCallback -> postToast for clarity 2022-11-03 21:08:22 +02:00
following.js rename postToast -> postToastSwitch and postToastCallback -> postToast for clarity 2022-11-03 21:08:22 +02:00
fp.js fix fp.js 2023-01-01 04:22:47 +02:00
gif_modal.js use addEventListener instead of on 2023-01-29 11:19:04 +02:00
hats.js stop using inline style/script elements 2022-12-29 16:20:27 +02:00
login_2fa.js stop using inline style/script elements 2022-12-29 16:20:27 +02:00
lottery.js same as last commit 2022-12-30 14:52:59 +02:00
markdown.js minor fix 2023-02-03 05:15:30 +02:00
mobile_navigation_bar.js convert "var" to "let" and "const" 2022-12-04 17:40:32 +02:00
mobile_prompt.js use addEventListener instead of onclick 2023-01-28 16:27:52 +02:00
more_comments.js various js fixes 2023-01-01 09:55:25 +02:00
new_comments.js stop using inline style/script elements 2022-12-29 16:20:27 +02:00
offline.js use addEventListener instead of onclick 2023-01-28 16:27:52 +02:00
pinpost.js restore pinning to how it was before JC raped it 2022-11-19 17:36:37 +02:00
profile_song.js add event listeners to document instead of window 2022-12-27 04:19:19 +02:00
register_service_worker.js get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
remove_mod.js same as last commit 2022-12-30 14:52:59 +02:00
report_post_modal.js use addEventListener instead of onclick 2023-01-28 16:27:52 +02:00
ricardo.js convert "var" to "let" and "const" 2022-12-04 17:40:32 +02:00
search.js casino + style shit 2022-09-05 01:15:37 +02:00
service_worker.js get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
settings_profile.js get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
settings_security.js use addEventListener instead of on 2023-01-29 11:19:04 +02:00
signup.js use addEventListener instead of on 2023-01-29 11:19:04 +02:00
spider.js add spider award 2022-09-20 19:52:52 +02:00
submission.js use addEventListener instead of onclick 2023-01-28 16:27:52 +02:00
submission_admin.js same as last commit 2022-12-30 14:52:59 +02:00
submission_listing.js remove/modify js return statements 2022-11-07 12:49:49 +02:00
submission_success.js fix bug with url change after posting 2022-12-30 09:35:52 +02:00
submit.js fix IMAGE_FORMATS 2023-01-01 05:38:37 +02:00
submit_hats.js increase filename in asset submission forms 2023-01-23 03:03:39 +02:00
submit_marseys.js increase filename in asset submission forms 2023-01-23 03:03:39 +02:00
togglePostEdit.js expand post-title field when editing 2022-11-11 16:47:51 +02:00
top.js the worst fucking code you'll ever see 2022-12-30 14:14:18 +02:00
userpage.js fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3419331#context 2023-01-27 15:06:37 +02:00
userpage_v.js same as last commit 2022-12-30 14:52:59 +02:00
view_more.js actually fix viewmore 2023-01-01 17:35:59 +02:00