From e379b58d5852ab449dc55a806f121b980d3db7c7 Mon Sep 17 00:00:00 2001
From: m <m>
Date: Fri, 20 Apr 2018 09:17:37 +0200
Subject: [PATCH] bug/send-comment-button

---
 js/app/studs.js       | 7 +++----
 tpl/part/comments.tpl | 3 ++-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/js/app/studs.js b/js/app/studs.js
index 2fbe19cc..816f8141 100644
--- a/js/app/studs.js
+++ b/js/app/studs.js
@@ -199,15 +199,14 @@ function checkCommentSending() {
 
     // on page load, "textSend" is not set
     if ("undefined" === typeof button.data("textSend")) {
-        button.data("textSend", button.val());
+        button.data("textSend", button.text());
     }
 
-
 	if (!form.get(0).checkValidity()) {
 		button.prop("disabled", true);
-		button.val(button.data("textWait"));
+		button.text(button.data("textWait"));
 	} else {
 		button.prop("disabled", false);
-		button.val(button.data("textSend"));
+		button.text(button.data("textSend"));
 	}
 }
diff --git a/tpl/part/comments.tpl b/tpl/part/comments.tpl
index bf75a098..387a5293 100644
--- a/tpl/part/comments.tpl
+++ b/tpl/part/comments.tpl
@@ -26,10 +26,11 @@
                         <button
 	                        type="submit"
 	                        id="add_comment"
-	                        value="{__('Comments', 'Send the comment')|html}"
 	                        class="btn btn-success"
 	                        data-text-wait="{__('Comments', 'Type your name and a comment to send it')|html}"
                         >
+                        	{__('Comments', 'Send the comment')|html}
+                        </button>
                     </div>
                 </fieldset>
             </div>
-- 
GitLab