Fix editing comments on issues and PRs
This commit fixes editing comments added via JS when the SSE is down/not
responding as well as fixes an issue where the edit box/form would stay
displayed after having submitted it.
Fixes https://pagure.io/pagure/issue/3800
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr></pingou@pingoured.fr>