enspiral/loomio — pull request #357 by fuzzytern (2012-10-28 01:47:39+00:00)
Title: New Feature : discussion revision history

Feature should now be complete.

Feature matches description in [the trello ticket](https://trello.com/card/discussion-description-history/4fc418d7b528e7e2398311b4/232), except the fact that the modal opens on current version instead of the previous one (we can discuss whether we want to change this behaviour).

Model, Controller and Requests tested.

Some CSS styles that affect all modal windows in the application have been modified.

Most of the ajax calls I've made replace part of the DOM. As a result of this, I needed to re-execute some of the Javascript that is first loaded on DomReady. The way the javascript code is currently structured in the whole application isn't designed to do it efficiently. I've kept it DRY, but the code might look a bit messy, and I think we should do a rewriting of all the JS code soon, especially if we keep adding more and more AJAX behaviours.

I've opened a [loomio conversation about this](http://www.loom.io/discussions/1082) regarding this.

If people can just play with this and tell what they think, that would be sweet :)