Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
trickory6745yYou should shoot the guy who wrote this instead.
But find out what his thought process was before doing it. -
C0D4681385y@trickory the disabled fields I get, except there's no backend checks on the form... 🤷♂️well there wasn't anyway.
But the iteration over fields from php side instead of just dropping (at worse) into an array in JS. Beats me.
Plus I have a strong hate for alt php syntax, and this project is riddled with it for some reason.
I would go visit this dev, but it could have been 1 of 4 devs who had this project before me and no longer work for the company. -
C0D4681385y@orhun it adds the disabled attribute to form elements derived from an array in PHP and prevents a user from using them if they aren't an admin user -> unless you remove the disabled attribute in console, but who does that?
Although, unless you find that php array, you'll have no idea which fields are being disabled by it as it's as dynamic as you could probably make it.
Related Rants
-
tahnik63So I need to create a nice new web app. Let's look at some cool JS frameworks that I can work with. *5 mins l...
-
ahmedam23What only relying on JavaScript for HTML form input validation looks like
-
Kalvin17How does a front-end developer get away with murder? $('body').hide(); //I'll see myself out
Some days I just want to shoot myself.
I get why... someone might do this, but sweet mother of god!
rant
kill it with fire
js
i must have done bad in a previous life
cluster fuck
jquery
alternative syntax
php