Commit Graph

60 Commits (8ed58c1d15ad2b135cc326dd4e26567b9574a011)

Author SHA1 Message Date
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: #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: #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