From 3f0a2c7dfc69e0a87cf5b0f387aafd8883c52cb8 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Mon, 19 Sep 2016 13:53:24 +0200 Subject: [PATCH] Fixes issue with too many " | " signs in error message [fixes SCI-459] --- app/assets/javascripts/comments.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/comments.js b/app/assets/javascripts/comments.js index 55eba53fc..67ca6a8e3 100644 --- a/app/assets/javascripts/comments.js +++ b/app/assets/javascripts/comments.js @@ -121,9 +121,8 @@ function initEditComments(parent) { $(".form-group", form) .addClass("has-error"); $(".help-block", form) - .html(messageError[0]) - .removeClass("hide") - .after(" |"); + .html(messageError[0] + " |") + .removeClass("hide"); } } }) @@ -149,4 +148,4 @@ function initEditComments(parent) { } }); }); -} \ No newline at end of file +}