thegorge-recipebook.js
$(document).on("click", ".recipelist-dishes li.dish", function () { event.preventDefault(); SelectDish(this); });
Should be:
$(document).on("click", ".recipelist-dishes li.dish", function (event) { event.preventDefault(); SelectDish(this); });
Right now in a strict javascript environment 'event' is not defined, but it is the first parameter of this callback function from is the event.
Steps to Reproduce
Use a mozilla based browser, perhaps not all of them, and try clicking on the recipes and get nothing but an error in the console.
Use a mozilla based browser, perhaps not all of them, and try clicking on the recipes and get nothing but an error in the console.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now