Commit Graph

114 Commits (ee3b1a5e06b316b43446fa9acfec0c780cc8bce9)

Author SHA1 Message Date
Aevann a37fca393d combined buy button for awards and hats 2023-04-24 17:08:40 +02:00
Aevann d36a930328 revert "Are you sure?" when something else is clicked 2023-03-21 21:11:02 +02:00
Aevann 0afbe21946 same as last commit 2023-03-18 11:26:55 +02:00
Aevann 4a6fcac48f fix toggleelement logic 2023-03-18 11:26:28 +02:00
Aevann 8ed58c1d15 hide older toggled elements when user toggle a new one 2023-03-18 08:36:56 +02:00
Aevann 5e35b9e2c7 remove leftover console.log 2023-03-17 15:37:20 +02:00
Aevann cee74418ad move popover shit to register_new_elements 2023-03-14 10:39:56 +02:00
Aevann 8eebf115a1 fix popover 2023-03-13 16:15:19 +02:00
Aevann e5b21825aa add js code to enforce the max attribute for number inputs 2023-03-12 16:45:52 +02:00
Aevann 965a484595 autoexpand generated textareas too 2023-03-12 16:09:43 +02:00
Aevann 835c5f810d use .img class 2023-03-12 15:13:28 +02:00
Aevann 49146f79a1 minor change to bottom.js 2023-03-12 14:49:20 +02:00
Aevann fedc723a7c retvrn to document-wide event listener to fix the barrage of bugs that won't stop 2023-03-12 01:40:08 +02:00
Aevann 2f043d8b0d fix undeleting highlighted comment 2023-03-11 07:13:45 +02:00
Aevann 170e1ed9d3 fix registered class to work as intended 2023-03-11 07:12:02 +02:00
Aevann 50fe438065 better register_new_elements 2023-03-11 01:47:50 +02:00
Aevann f456077659 try to fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3759332#context 2023-03-10 23:19:08 +02:00
Aevann 52372b156d actually fix cancel button 2023-03-10 03:31:54 +02:00
Aevann 3f6c81407b fix cancel button not working sometimes 2023-03-10 00:44:31 +02:00
Aevann fde1b676b7 i have no idea wtf im doing 2023-03-09 22:34:36 +02:00
Aevann 3415120eb2 am i retarded x2 2023-03-09 22:32:12 +02:00
Aevann 693e882eec am i retarded? 2023-03-09 22:31:13 +02:00
Aevann 75ee789b98 fix i think 2023-03-09 22:30:01 +02:00
Aevann ceef37472e make the logic for disabling buttons consistent 2023-03-09 21:41:08 +02:00
Aevann 27b6d23e13 fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3740898#context 2023-03-09 07:59:44 +02:00
Aevann ec4b32caee make disable_btn work for 1 seconds instead of 2 2023-03-07 07:31:20 +02:00
Aevann 7b0d829cbf reduce timeout for disable_btn 2023-03-07 06:43:54 +02:00
Aevann 68e481b15d fix disabling buttons 2023-03-07 02:58:02 +02:00
Aevann 590728b1c4 fix wrong syntax :marseybrainlet: 2023-03-07 02:40:39 +02:00
Aevann b2c7ca31da move disabling buttons to bottom.js 2023-03-07 02:21:08 +02:00
Aevann b83aa1d82c better media code 2023-03-06 20:02:12 +02:00
Aevann 3d40cab998 fix bug affecting main picture in /submit 2023-02-27 19:28:20 +02:00
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