Closed antonioalmeida closed 6 years ago
Implemented an ugly function in js. But the buttons listeners aren't working.
Good enough. Just added event listeners
@diogotorres97 need to update this given latest changes.
Add Item and Add list
Done!
Done one more time!
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