Fix deletion of deprecated notes
Notes in Snippets / Commits are deleted from the DOM even before the user confirmed the deletion. With `bootstrap_confirmation_modals` enabled this actually caused a bug, because the element is progamatically clicked after confirmation. But as the element is removed from the DOM already, Rails/UJS didn't intercept the click properly. If we switch from a click handler to an ajax:success handler _and_ remove the note from the DOM after a successful deletion, this problem is resolved.
Showing
Please register or sign in to comment