M wwwroot/css/caint.css => wwwroot/css/caint.css +7 -0
@@ 117,3 117,10 @@ button:hover, input[type="submit"]:hover{
padding-top: 0%;
margin-block-start: 0%;
}
+
+.unapproved {
+ background: #f4f4f4;
+ border-bottom: dashed;
+ border-bottom-width: 1px;
+ border-bottom-color: #dddddd;
+}
M wwwroot/js/caint.js => wwwroot/js/caint.js +5 -0
@@ 68,6 68,11 @@ async function addItem() {
.then(response => response.json())
.then(() => {
getThread(commentThreadId);
+
+ var unapprovedMarker = document.createElement('div');
+ unapprovedMarker.setAttribute('class', 'comment unapproved');
+ unapprovedMarker.innerHTML = 'Your comment has been submitted. It may require approval from the site admin before showing up.';
+
commenterNameTextbox.value = '';
commentBodyTextbox.value = '';
})