railsforcharity/spokenvote — pull request #215 by kimardenmiller (2013-06-09 21:54:06+00:00)
Title: Combined New Proposal and New Hub Modal Complete

Completes Trello tickets [#119](https://trello.com/c/JTUJXuU6) and [#182](https://trello.com/c/JTUJXuU6)

- Fully combined New Proposal and New Hub functions

- User can come to this modal from either the selection Hub create selection in the top Select2 drop-down or via creating a new proposal from the proposals list.

- Interactive dialog using bootstrap transitions to change as conditions change

- Many global session values were refactored into services for global availability and a firm foundation for future feature builds.

- Angular-strap Modal functionality was removed and UI Bootstrap functionality was used to replace it.

- Google Autocomplete directive was simplified and improved and fully integrated into this new Hub creation logic.

- Routing fixed to honor arriving via detailed link, e.g. www.spokenvote.org/proposals?filter=active&hub=1

- Select2 logic was fixed to initialize and show the correct hub when arriving via detailed link.

- Test specs were fixed and are now all passing :)