Commit Graph

32 Commits (88762071aa12ef0a6a03f99394d27c0c698ac6a7)

Author SHA1 Message Date
Aevann 1522158ed8 fix award_modal with js-created comments 2023-02-27 17:19:28 +02:00
Aevann 5b71b0a81a refactor file upload 2023-02-27 17:02:35 +02:00
Aevann 01040daf7c remove extra tabs 2023-02-24 07:32:59 +02:00
Aevann a395c18955 remove unnecessary tabs 2023-02-22 19:27:33 +02:00
Aevann d649801cc7 use console.error instead of console.log in bottom.js 2023-02-21 20:29:32 +02:00
Aevann e652a9bfd0 delete unecessary linefeed 2023-02-21 20:24:30 +02:00
Aevann 338033df2b use href attribute for refreshing instead of js 2023-02-19 14:22:19 +02:00
mummified-corroding-granny 113a1b4959 small lil tisms: table column sort disabling, remove ugly https:// string from rules (#112)
* about the rdrama_rules, when I changed from http:// to https:// the other day, in some browsers it now displays the protocol tag which is ugly and inconsistent. Not sure why on some browsers it did not display "http://" before
* about the sorting: I will disable sorting on more table columns later on. This is all I can do right now

Reviewed-on: rDrama/rDrama#112
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:39 +00:00
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
Aevann 8133b219a4 refactor popovers 2023-02-02 22:07:14 +02:00
Aevann 2cd909b645 fix roulette 2023-02-01 17:30:42 +02:00
Aevann d272a467bc move bottom.js to core.js 2023-01-28 17:47:20 +02:00
Aevann 18ecf0a803 use only addeventlistener in bottom.js 2023-01-28 17:17:04 +02:00
Aevann 010f424756 use addEventListener instead of onclick 2023-01-28 16:27:52 +02:00
Aevann a9f169d3be minimize document-wide eventlisteners 2023-01-28 12:38:14 +02:00
Aevann 8b859cc610 register_new_elements consistency 2023-01-28 12:37:26 +02:00
Aevann 5995c6094a make all entries register_new_elements consistent 2023-01-28 11:56:32 +02:00
Aevann 3d7a549139 add some spaces for readability 2023-01-28 11:55:55 +02:00
Aevann 3c61799977 fix dynamically created popovers 2023-01-27 18:36:11 +02:00
Aevann c560d1d9fe improve the "show more" button 2023-01-21 01:47:27 +02:00
Aevann 2e6d7e61dd fix a bunch of settings 2023-01-01 16:19:25 +02:00
Aevann f68372a3f2 fix old comment images 2023-01-01 13:17:29 +02:00
Aevann 424b643678 same as last commit 2023-01-01 11:45:46 +02:00
Aevann 662ab8a209 trim all arguments 2023-01-01 10:56:11 +02:00
Aevann e032596c77 various js fixes 2023-01-01 09:55:25 +02:00
Aevann f65f714b94 fix reload_page btn 2023-01-01 04:53:35 +02:00
Aevann 21c88c7d9e fix settings 2023-01-01 04:50:06 +02:00
Aevann f999e30159 remove leftover regex 2023-01-01 04:20:02 +02:00
Aevann 0c6866ed84 fix undisabling elements 2023-01-01 04:17:46 +02:00
Aevann 7141eafdf5 fix award modal 2022-12-30 17:16:49 +02:00
Aevann 7ee7933773 same as last commit 2022-12-30 14:52:59 +02:00
Aevann f0b20cad55 the worst fucking code you'll ever see 2022-12-30 14:14:18 +02:00