Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
14 I found the error of the button, I only have no idea how to solve it >_>

I managed to break jquery and get the error "to much recursion" in the jquery file >_>
 
12 I just found out why the fricking button didn't work.
I believe its caused by this:
The one before me had input fields with the required attribute but because most of the time those would be hidden he made javascript code to not show the "you need to fill this in" text if you pressed the submit button and still let you submit it.
Am I allowed to hit said person for writing stupid code?
 
10 well, maybe it does not do that this is the code that causes the crash:
$('#orderForm').parsley({
excluded: "input[type=radio], select.shipment_select"
});
edit nvm that it still doesn't post >_> it did stop showing that error though

lets debug some more :(
 
Last edited:
8 found the code that prevented it from submitting and I now find it even weirder that it although in certain conditions worked at all.
 
6 good luck with that one, I now need to decide what I am going to do with the broken code. throw it away or try to fix it.
 
4 considering I have yet to see any errors from commenting the code out, I think I let it stay that way.
 
2 I just counted 12 lines of $(element).parent().parent().something
in his code. I am lucky that I didn't need to change the place of "element" in the HTML code