-
Notifications
You must be signed in to change notification settings - Fork 18
Shift Complete Item Functionality to Task Dropdown Menu #128
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
base: master
Are you sure you want to change the base?
Shift Complete Item Functionality to Task Dropdown Menu #128
Conversation
- html structure - styling
Connect item menu element to event listener
Abide by the canonical code style.
Include need no name
between UI components —from item bullet point to 'Complete' li in the item menu
e055049 to
90e2ca6
Compare
|
@jrob8577, @GeneralMeow, @sdweber422 ready for review. |
27456b1 to
10e7059
Compare
|
@jrob8577
|
jrobcodes
left a comment
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.
@shakalee14 @tjfwalker One comment
public/javascripts/items.js
Outdated
| const completedClicked = event => { | ||
| const element = $( event.target ) | ||
| const id = element.data( 'id' ) | ||
| const id = element.parent().data().id |
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.
I think this needs to be (docs)
const id = element.parent().data( 'id' )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.
Also, why doesn't the element just have the id for itself, given that it's the target of this event? I just don't like hanging our code on the notion that the html structure here won't change.
Conciliate the supreme Jrob =]
10bd1b1 to
a627b1c
Compare
|
@jrob8577 your most recent review has been acted upon. Please rereview. |
| $( '.item__edit-description' ).keypress( descriptionEdited ) | ||
| $( '.item__description > span' ).click( clickToUpdate( 'item__description' )) | ||
| $( '.item__toggle' ).click( completedClicked ) | ||
| $( '.item__menu ul li:first-child' ).click( completedClicked ) |
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.
Please use explicit class
Fix #125