eiskalteschatten / developers-notebook-symfony

Developer's Notebook Symfony Web Application
0 stars 0 forks source link

Problem when removing all to dos or bookmarks #42

Closed eiskalteschatten closed 9 years ago

eiskalteschatten commented 9 years ago

When all to dos or bookmarks are removed, you can no longer add new items until the page has been reloaded. Cause: the Javascript no longer has any rows to clone.

Solution: always include the "to-be-cloned" row which is added manually to the array in the controller with a specific name. This name is checked for in the frontend and if it matches, the "to-be-cloned" CSS class is added to it.