hypothesis/h — pull request #447 by gergely-ujvari (2013-05-30 10:44:21+00:00)
Title: Fix for #364

The cause of the workflow break was that the ```onAdderClick()``` function in the annotator.coffee subscribes to the ```onEditorSubmit``` and the ```onEditorHidden``` events and cleans up itself after receiving either of them.

However, when we interrupted the workflow in the ```showEditor()``` function in the services.coffee we haven't published any of these two events, that's why it was stucked.

But this fix does more. In that interrupted case, after login, it restarts the process by calling ```onAdderClick()``` function again with the same event. So the user logs in and the editor window is showed, I think this is very user-friendly.

I've checked if there is a good opportunity to restart the process inside the siderbar frame, but after login all annotations are deleted and there is not a good way to smuggle back our annotation chunk. Restart the edit process from the start is a clean way.

(Sorry for the multiple attempts, I'm still learning to use git rebase)