From 62e71c2c6b333faf9a85e619246f83491b479c75 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 1 Oct 2018 14:57:42 +0200 Subject: [PATCH] LSformElement_textarea : fix clear btn/Grammalecte compatibility --- public_html/includes/js/LSformElement_textarea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/js/LSformElement_textarea.js b/public_html/includes/js/LSformElement_textarea.js index e3a7dd96..3e1e029b 100644 --- a/public_html/includes/js/LSformElement_textarea.js +++ b/public_html/includes/js/LSformElement_textarea.js @@ -21,7 +21,7 @@ var LSformElement_textarea = new Class({ }, onClearBtnClick: function(btn) { - btn.getPrevious().value=''; + btn.getPrevious('textarea').value=''; }, reinitialize: function(el) {