diff --git a/Web/static/css/style.css b/Web/static/css/style.css index 411d6119..c409f70f 100644 --- a/Web/static/css/style.css +++ b/Web/static/css/style.css @@ -563,6 +563,7 @@ input[type="text"], input[type="password"], input[type~="text"], input[type~="pa font-size: 11px; font-family: tahoma, verdana, arial, sans-serif; width: 100%; + box-sizing: border-box; } h4 { diff --git a/Web/static/js/al_comments.js b/Web/static/js/al_comments.js index 6f36730b..f4172428 100644 --- a/Web/static/js/al_comments.js +++ b/Web/static/js/al_comments.js @@ -8,6 +8,6 @@ u(".comment-reply").on("click", function(e) { let mention = ("[" + (fromGroup ? "club" : "id") + authorId + "|" + authorNm + "], "); // Substitute pervious mention if present, prepend otherwise - inputbox.nodes[0].value = s.nodes[0].value.replace(/(^\[([A-Za-z0-9]+)\|([\p{L} 0-9@]+)\], |^)/u, mention); + inputbox.nodes[0].value = inputbox.nodes[0].value.replace(/(^\[([A-Za-z0-9]+)\|([\p{L} 0-9@]+)\], |^)/u, mention); inputbox.trigger("focusin"); });