Closed riddlew closed 2 years ago
adding a picture for zorch :P
I did not add maxlength to the links fields since they are 500 characters per link, not 500 characters total. Adding maxlength will restrict the field to 500 characters total, as seen in this image:
Probably wouldn't be an issue if the user doesn't submit more than 2-3 links, but I'd rather not do that considering some animes and mangas have ridiculously long names. What I opted to do was to not restrict the total length of the field, but show a visual indication of when it is over the length.
If the user still submits even though it is over, it returns the error server side.
But if each link is under 500, it'll submit successfully.
Fair enough, i completely forgot about this (even though i am pretty sure i wrote that part of the logic myself lmao). Closed and merged - ty again :)
Adds maxlength indicator to form input fields in the Add Movies page that tracks current / maxlength of specific input fields.
This also adds a maxlength indicator to the Reference Links textarea that tracks the current / maxlength of each individual link in the textarea, separated by a newline.
Currently only used in add-movies, but can be added where needed.
This should close #103.