Aevann
b9aad1503c
use () => instead of function() for consistency
2023-03-10 03:33:05 +02:00
Aevann
ceef37472e
make the logic for disabling buttons consistent
2023-03-09 21:41:08 +02:00
Aevann
e5fb424bd3
minor fix to handle_files()
2023-03-09 07:28:22 +02:00
Aevann
f202188d66
same as last commit
2023-03-07 07:38:55 +02:00
Aevann
bdde66f020
parse sortKey as int too
2023-03-07 07:37:14 +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
5e84b0d5ec
increase max filename from 20 chars to 50
2023-03-06 19:51:54 +02:00
Aevann
3a67c1647d
fix bug with pasting in /submit + dedup
2023-03-04 21:54:06 +02:00
Aevann
b84d24ffa1
expand all textareas on load
2023-03-04 20:09:15 +02:00
Aevann
12a5ffab0d
super ugly hack to make pasting files with selection smoother
2023-03-02 00:11:17 +02:00
Aevann
eb7631d70e
insert filename at cursor
2023-03-01 23:20:54 +02:00
Aevann
c6dcb2e93d
add progress bar to comments
2023-02-27 19:25:38 +02:00
Aevann
8342e8b7c3
increase the limit from 8 files to 20 files
2023-02-27 18:05:28 +02:00
Aevann
5b71b0a81a
refactor file upload
2023-02-27 17:02:35 +02:00
Aevann
6e200d332e
use [file] instead of <file>
2023-02-27 07:24:26 +02:00
Aevann
8bd2d38539
fix leftover nigg
2023-02-26 14:47:51 +02:00
Aevann
663cdde1f4
increase the limit for concurrent file uploads from 4 to 8
2023-02-26 14:19:30 +02:00
Aevann
6ac9b32834
allow positioning of files
2023-02-26 14:08:37 +02:00
Aevann
686f88e9cf
css solution to the height spam question
2023-02-26 13:08:52 +02:00
Aevann
6482a46955
restore compatibility
2023-02-24 09:31:12 +02:00
Aevann
ae26306846
Revert "improve the showmore algo"
...
This reverts commit 9529cbbd61
.
2023-02-24 09:29:46 +02:00
Aevann
d2447905b0
same as last commit
2023-02-24 08:45:14 +02:00
Aevann
f8b557c64c
same as last commit
2023-02-24 08:45:01 +02:00
Aevann
0240094853
same as last commit
2023-02-24 08:44:23 +02:00
Aevann
96c732704d
same as last commit
2023-02-24 08:43:58 +02:00
Aevann
6917f65a56
same as last commit
2023-02-24 08:42:31 +02:00
Aevann
c346997d5d
same as last commit
2023-02-24 08:40:18 +02:00
Aevann
1a91f42872
fix showmore button on old posts
2023-02-24 08:38:55 +02:00
Aevann
e5f7c7a918
fix show more button in posts
2023-02-24 08:35:44 +02:00
Aevann
9529cbbd61
improve the showmore algo
2023-02-24 03:24:50 +02:00
Aevann
b819fa51d0
make it possible for jannies to stack chuds and bans
2023-02-19 15:23:08 +02:00
Aevann
952fe68ea6
dont focus search bars on mobile since it triggers the keyboard which can be annoying
2023-02-18 20:58:07 +02:00
Aevann
56ed10f9fe
remove testing shit
2023-02-07 03:23:17 +02:00
Aevann
711368baa5
same as last commit
2023-02-07 03:21:47 +02:00
Aevann
884f0a6f55
test smth on devrama
2023-02-07 03:17:22 +02:00
Aevann
24ba5a6663
remove duplicate shit in core.js
2023-02-02 19:15:25 +02:00
Aevann
20067bb2b2
remove #modal shit
2023-02-02 01:31:52 +02:00
mummified-corroding-granny
3a3e1d8d74
add javascript and css for non-click-sortable table headers th ( #107 )
...
I noticed there are some over-interactive tables in general on rdrama. Particularly, multiple columns in the shop tables (awards and hats), which allow you to sort by buttons, icons, … The one page for user profile views also comes to mind, because it uses relative time since last visit, is paged server-side and browsers do not know how to sort that type of data anyway.
Also I noticed there are some tables that have disabled sorting by using <td> instead of <th> for the headers as is the case of the following pages:
* @uid/followed
* @uid/following
All of these situations are accounted for but need to be changed later in a different PR, because I can't right now.
For example, the "Buy" column of the shop can be changed to the following to disable sorting:
`<th class="disable-sort-click">Buy</th>`
Reviewed-on: rDrama/rDrama#107
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-01 14:10:10 +00:00
Aevann
fad8d35992
fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3501310#context
2023-01-29 17:08:03 +02:00
Aevann
d272a467bc
move bottom.js to core.js
2023-01-28 17:47:20 +02:00
Aevann
51f6c8bb0a
aethetic consistency
2023-01-28 12:40:03 +02:00
Aevann
a8a1af6bea
dont use implicit addEventListener
2023-01-28 12:39:44 +02:00
Aevann
a9f169d3be
minimize document-wide eventlisteners
2023-01-28 12:38:14 +02:00
Aevann
2006040375
make lite-youtube pausing also work when the button is clicked
2023-01-28 12:38:06 +02:00
Aevann
e68a1540c5
fix js error
2023-01-24 12:40:25 +02:00
Aevann
7e47c0b9cc
fix /log_out
2023-01-24 12:02:08 +02:00
Aevann
2b3dd62a86
minor fix to ban button on profile pages
2023-01-21 07:46:21 +02:00
Aevann
c560d1d9fe
improve the "show more" button
2023-01-21 01:47:27 +02:00
Aevann
5b26941c5c
same as last commit
2023-01-01 14:31:40 +02:00
Aevann
f7874b2c4e
fix show more button
2023-01-01 14:26:25 +02:00
Aevann
044664a25e
get rid of useless tabs and spaces
2023-01-01 13:36:20 +02:00
Aevann
91b8602714
Revert "stop using 200w"
...
This reverts commit cabc0d3603
.
2023-01-01 13:18:24 +02:00
Aevann
cabc0d3603
stop using 200w
2023-01-01 10:10:06 +02:00
Aevann
e032596c77
various js fixes
2023-01-01 09:55:25 +02:00
Aevann
46023a4c08
pass element instead of its generated id
2023-01-01 05:05:09 +02:00
Aevann
b61df41cef
js fixes
2022-12-30 19:06:02 +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
Aevann
93e9a42fa3
stop using inline style/script elements
2022-12-29 16:20:27 +02:00
Aevann
95843440f6
add event listeners to document instead of window
2022-12-27 04:19:19 +02:00
Aevann
264ed60cc4
replace "DOMContentLoaded" with "load"
2022-12-27 03:45:30 +02:00
Aevann
1c02223586
rework gif modal and award modal
2022-12-26 03:57:09 +02:00
Aevann
a122986111
fix giphy framerate
2022-12-25 06:10:54 +02:00
Aevann
c279eeb9d2
rename expandDesktopImage to expandImage
2022-12-25 03:56:19 +02:00
Aevann
5901f5a53f
minor fix for url for expanded image modal
2022-12-25 03:56:10 +02:00
Aevann
e6803f93e9
rework gif modal
2022-12-25 03:45:24 +02:00
Aevann1
c861e6e389
minor js fix
2022-12-16 22:17:23 +02:00
Aevann1
760c4f7ae0
add error exception to postToastSwitch
2022-12-16 22:00:45 +02:00
Aevann1
59e0beebb2
minor change
2022-12-11 21:19:10 +02:00
Aevann1
e1d5b8eb88
minor fix to sorting tables
2022-12-10 13:57:23 +02:00
Aevann1
1886dd986e
move sort_table.js to core.js
2022-12-10 12:40:34 +02:00
Aevann
81267ef1c6
do this https://stupidpol.site/h/countryclub/post/79285/tired-of-some-cute-twink-jannies/3194721?context=8#context ( #53 )
...
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Reviewed-on: rDrama/rDrama#53
2022-12-07 16:51:51 +00:00
Aevann1
c0676e198c
convert "var" to "let" and "const"
2022-12-04 17:40:32 +02:00
Aevann1
c9f44b5777
rename data-click to data-click2
2022-11-28 06:35:33 +02:00
Aevann1
cdac98ae05
fix logout bug
2022-11-26 23:45:39 +02:00
Aevann1
a8c6daa431
fix console error
2022-11-26 07:34:50 +02:00
Aevann1
faf8e4ed2f
dude consistency lmao
2022-11-26 01:25:15 +02:00
Aevann1
596cf967a2
go back to CRGD's cervix worker
2022-11-21 21:22:02 +02:00
Aevann1
1771f34069
make service-worker work for logged-out-cels and update it
2022-11-21 20:35:12 +02:00
Aevann1
6b00482180
remove leftover pwa js code
2022-11-21 20:31:53 +02:00
Aevann1
3f0966bf03
remove target="_blank" for PWA users
2022-11-21 19:41:40 +02:00
Aevann1
f272989735
Revert "stop adding target="_blank" in the backend and move it to the frontend (to accomodate PWA users) - THANK YOU GEESE I LOVE YOU SO MUCH ( #473 )"
...
This reverts commit 88f3cd519d
.
2022-11-21 19:37:38 +02:00
Aevann1
88f3cd519d
stop adding target="_blank" in the backend and move it to the frontend (to accomodate PWA users) - THANK YOU GEESE I LOVE YOU SO MUCH ( #473 )
...
* test
* bleg
* remove User.newtab and see if anyone complains (#471 )
* fddf
2022-11-21 07:14:26 -08:00
Aevann1
d73ffaa2eb
use a window event listener instead of a loop
2022-11-18 21:41:03 +02:00
Aevann1
ee82ab2072
theres only 1 nav element, why a loop?
2022-11-18 21:40:46 +02:00
Aevann1
b4448ae926
remove unnecessary arrow functions
2022-11-18 21:34:38 +02:00
Aevann1
4202187a83
fix console error
2022-11-11 20:32:06 +02:00
Aevann1
e773e40a0d
style change in settings_css
2022-11-08 06:09:55 +02:00
Aevann1
efe168e2c2
increase max filename from 20 chars to 22 chars
2022-11-08 00:25:39 +02:00
Aevann1
c8a613389b
remove/modify js return statements
2022-11-07 12:49:49 +02:00
Aevann1
4b3b52013a
remove unnecessary parameter
2022-11-07 08:30:41 +02:00
Aevann1
ce6998bd6e
make shadowbanned, banning, chudding from the userpage work without refreshing the page
2022-11-07 08:08:53 +02:00
Aevann1
5be668a049
fix "give award" button not getting grayed-out correctly
2022-11-07 07:41:57 +02:00
justcool393
83fe77c039
settings: implement backend logic for permanent filters
2022-11-06 20:06:37 -08:00
Aevann1
1b34ef4244
rename "callback" to "extraActionsOnSuccess"
2022-11-04 23:56:08 +02:00
Aevann1
995d3cbc98
add postToastReload
2022-11-04 23:44:44 +02:00
Aevann1
204415c4f8
bug fix
2022-11-04 20:45:52 +02:00
Aevann1
d4a99c05e9
rename postToast -> postToastSwitch and postToastCallback -> postToast for clarity
2022-11-03 21:08:22 +02:00
Aevann1
20fc3e29b2
use postToastCallback in postToast
2022-11-03 21:07:08 +02:00
Aevann1
c2c5e61e60
camelCase
2022-11-03 18:11:11 +02:00
Aevann1
2ba1a1e86e
remove postToast compatability function
2022-10-30 17:10:07 +02:00
Aevann1
887bb64483
remove forgotten console.log(e)
2022-10-25 15:58:38 +02:00
Aevann1
a390f3d917
refactor my prev commit
2022-10-25 00:36:54 +02:00
justcool393
df1eedc8d9
button1 button2
2022-10-14 11:20:23 -07:00
justcool393
6efb9b41b4
use createXhrWithFormKey in the lottery
2022-10-14 06:07:47 -07:00
justcool393
bb9ab04a90
spaces -> tabs
2022-10-14 06:07:47 -07:00
justcool393
0eaed637be
use createXhrWithFormKey in more places
2022-10-14 06:07:47 -07:00
justcool393
f22ef3a7e5
refactor post_toast_callback a bit and create createXhrWithFormKey function
2022-10-14 06:07:47 -07:00
justcool393
6884774906
showToast adjusments so we can use toast 2 and adjust them for ALMOST all of them
2022-10-14 06:07:47 -07:00
justcool393
e4cbe4178a
tabify
2022-10-14 02:50:39 -07:00
justcool393
29af9dbbf4
move fn
2022-10-14 02:50:39 -07:00
justcool393
7620d8d8cd
show the error toast on errors, not the success toast
2022-10-14 02:50:39 -07:00
justcool393
3a11cfd603
rename classname to className
2022-10-14 02:50:39 -07:00
justcool393
b06ee9ac9b
refactor of post_toast
2022-10-14 02:50:39 -07:00
justcool393
2559794135
Move stuff we put in bootstrap.js to a new core.js file
2022-10-14 02:50:39 -07:00