Skip to content

Conversation

@tjfwalker
Copy link
Contributor

Fix #125

@tjfwalker tjfwalker changed the title Shift Complete Item Functionality to Task Dropdown Menu WIP: Shift Complete Item Functionality to Task Dropdown Menu Dec 22, 2016
between UI components —from item bullet point
to 'Complete' li in the item menu
@tjfwalker tjfwalker force-pushed the feature/complete-via-menu branch from e055049 to 90e2ca6 Compare December 22, 2016 18:40
@tjfwalker tjfwalker changed the title WIP: Shift Complete Item Functionality to Task Dropdown Menu Shift Complete Item Functionality to Task Dropdown Menu Dec 22, 2016
@tjfwalker
Copy link
Contributor Author

@jrob8577, @GeneralMeow, @sdweber422 ready for review.

@tjfwalker tjfwalker force-pushed the feature/complete-via-menu branch from 27456b1 to 10e7059 Compare December 22, 2016 20:02
@tjfwalker
Copy link
Contributor Author

@jrob8577

jrob.review( this, 'kindly' )

Copy link
Contributor

@jrobcodes jrobcodes left a 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

const completedClicked = event => {
const element = $( event.target )
const id = element.data( 'id' )
const id = element.parent().data().id
Copy link
Contributor

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' )

Copy link
Contributor

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 =]
@tjfwalker tjfwalker force-pushed the feature/complete-via-menu branch from 10bd1b1 to a627b1c Compare December 22, 2016 22:22
@tjfwalker
Copy link
Contributor Author

@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 )
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use explicit class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants