antonioalmeida / get-shit-done

Made with @cyrilico and @diogotorres97. Repository to host Web Languages and Technologies' project.
2 stars 0 forks source link

Optimize item addition #6

Closed antonioalmeida closed 6 years ago

antonioalmeida commented 7 years ago

As the html markup of the .item class on https://github.com/antonioalmeida/feup-ltw/blob/master/project1/list.php becomes more complicated, should we create a separate action to retrieve it's html markup? This is only useful if it can be used when adding a new item.

Is it possible for 'action_add_item' to return the complete HTML markup for the item instead of just the newly added item's properties? Or should we make two action calls: one to add the item, one to retrieve the item's markup based on the item's properties. Need thoughts on this @cyrilico @diogotorres97

diogotorres97 commented 7 years ago

Implemented an ugly function in js. But the buttons listeners aren't working.

antonioalmeida commented 7 years ago

Good enough. Just added event listeners

antonioalmeida commented 7 years ago

@diogotorres97 need to update this given latest changes.

diogotorres97 commented 7 years ago

Add Item and Add list

diogotorres97 commented 6 years ago

Done!

diogotorres97 commented 6 years ago

Done one more time!