From 647b3160bc7c4522ad9b18ba63eb30ac0c18eb37 Mon Sep 17 00:00:00 2001
From: Chris Lawton <chris.lawton@torchbox.com>
Date: Wed, 15 May 2019 09:09:56 +0100
Subject: [PATCH] warn users about unsaved comments when refreshing the page

---
 opentech/static_src/src/javascript/apply/edit-comment.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opentech/static_src/src/javascript/apply/edit-comment.js b/opentech/static_src/src/javascript/apply/edit-comment.js
index 5e197f28a..ed5e8e63f 100644
--- a/opentech/static_src/src/javascript/apply/edit-comment.js
+++ b/opentech/static_src/src/javascript/apply/edit-comment.js
@@ -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;
             }
-- 
GitLab