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

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
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 >_>
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
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?
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
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:

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
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.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
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.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
4 considering I have yet to see any errors from commenting the code out, I think I let it stay that way.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
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