wingedmonkey/wingedmonkey — pull request #265 by jtomasek (2013-03-06 12:11:44+00:00)
Title: Properties toggle fix, confirm message directive refactoring

This pull request fixes #250. Also the confirm message for Application deletion persists through the poll refresh.

The issue here was, that every poll, the ```providerApps``` array is replaced, which makes the whole list rerendered, forcing the toggles to close. To avoid this, I introduced ```toggles``` node into the providerApp's json response. When new providerApps array is refreshed, the items in the new array's toggles are updated from the old array. This will maintain the opened/closed state of the given toggle. Similarly for running the actions on single providerApp.