-
Notifications
You must be signed in to change notification settings - Fork 44
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
Pipes - Kee - BackTREK #47
base: master
Are you sure you want to change the base?
Conversation
BackTREKWhat We're Looking For
|
<div class="row content-wrapper"> | ||
<section class="col-sm-12 col-md-6 all-trips"> | ||
<div class="row search-wrapper"> | ||
<form class="col-sm-12 form-inline" action=""> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't seem to have any JavaScript catching this form's submit action, so it causes a page reload.
|
||
console.log(`About to fetch data from ${ tripList.url }`); | ||
|
||
tripList.on('update', render); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need an:
tripList.on('sort', render);
Otherwise it sorts, but doesn't display the results on the screen!
$('#add-trip-form').on('submit', (event) => { | ||
event.preventDefault(); | ||
|
||
const tripData = readForm(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't HAVE a readForm()
function.
BackTREK
Congratulations! You're submitting your assignment!
Comprehension Questions