sharedearth-net/sharedearth-net — pull request #5 by amitamb (2011-10-08 14:20:06+00:00)
Title: Pull request for popup improvement and showing form error messages in popup

I have added the Close button and OK button to popup to close it.
I have also added corresponding event handlers in Page.js.

Errors for form are handled in shared partial _error_messages.html.erb
I have updated it to simply be a placeholder for errors which will be copied to popup when page renders.

On DOJO.ready I check in app.js for presence of errorexplaination div's presence. If it is present then I copy the title and error messages from it in the popup and show the popup.

Thanks
Amit