Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed remove link so that it works correctly to remove row now. #39

Merged
merged 1 commit into from
Aug 14, 2011

Conversation

mdpatrick
Copy link
Contributor

Remove link wasn't working. At first I thought this had something to do with Symfony, but after looking at template I realized it was nothing of the sort and we were just missing a little jQuery. Added a couple of lines and now you can remove a pizza from your order you're building.

@@ -72,6 +72,9 @@
if ($(this).text() === "Add") {
add();
}
if ($(this).text() === "Remove") {
$(this).parent().parent().parent().parent().remove();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, can you make use of "closest" method instead?

@mdpatrick
Copy link
Contributor Author

I amended this commit and force pushed. If you check the diff, it should be correct now.

brikou added a commit that referenced this pull request Aug 14, 2011
Fixed remove link so that it works correctly to remove row now.
@brikou brikou merged commit 7335569 into beberlei:master Aug 14, 2011
@brikou
Copy link
Collaborator

brikou commented Aug 14, 2011

Ok thank

@mdpatrick
Copy link
Contributor Author

Thank you for showing me a better way of doing things! I've had a minor epiphany about the value of contributing to open source. :) (Little bit new to github)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants