Skip to content
Snippets Groups Projects
Commit 647b3160 authored by Chris Lawton's avatar Chris Lawton
Browse files

warn users about unsaved comments when refreshing the page

parent 54eeb5ab
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@
})
}).then(response => {
if (response.status === 404) {
$(this).closest(editBlock).append('<p class="wrapper--error js-comment-error"><b>Update unsuccessful</b>. This comment has been edited elsewhere - please refresh to get the latest updates.</p>');
$(this).closest(editBlock).append('<p class="wrapper--error js-comment-error">Update unsuccessful. This comment has been edited elsewhere. To get the latest updates please refresh the page, but note any unsaved changes will be lost by doing so.</p>');
$(this).attr('disabled', true);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment