-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature/kak/drag tour destinations#1112 #1157
Feature/kak/drag tour destinations#1112 #1157
Conversation
a1bc109
to
ef6cdb0
Compare
build again |
cead4ab
to
e976ff4
Compare
This has been rebased on #1156 and should be testable again now. |
Pass full tour object to template.
Add library for reordering HTML lists. Also pick up minor package updates.
Fix loading jQuery Sortable plugin.
When user drags to reorder tour destination list, update directions. Closes azavea#1112.
Fix loading spinner not showing after redesign/moving tour sidebar element in DOM.
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.
👍 Looks good!
if (tour.id !== tourId) { | ||
tourId = tour.id; | ||
destinations = tour.destinations; | ||
} else { | ||
// tour unchanged; preserve user assigned destination order | ||
tour.destinations = destinations; | ||
} |
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.
This is a nice detail, preserving their changes as much as we can.
aa41e68
to
f0bf510
Compare
Overview
Allow dragging tour destinations in sidebar to reorder them, which triggers refreshing the route to update the waypoint order and destination.
Notes
I based this PR on #1126. I'll rebase on
tours
once #1126 has merged.Testing Instructions
Closes #1112