diff --git a/assets/js/staticman.js b/assets/js/staticman.js index e75a2d60..1906416b 100644 --- a/assets/js/staticman.js +++ b/assets/js/staticman.js @@ -53,7 +53,8 @@ $(document).ready(function() { .filter(function() { return this.name.match(/^fields\[.*\]$/); }) - .val(''); // empty all hidden fields but not options + .val(''); // empty all text & hidden fields but not options + $('.post-new-comment textarea').val(''); // empty text area $('.post-new-comment .submit-success').addClass('hidden'); // hide submission status $('.post-new-comment .submit-failed').addClass('hidden'); // hide submission status } diff --git a/exampleSite/resources/_gen/assets/js/js/staticman.js_8cd1ffcbd6280a9d3369580fb528eb22.content b/exampleSite/resources/_gen/assets/js/js/staticman.js_8cd1ffcbd6280a9d3369580fb528eb22.content index e3837b9c..55e77b92 100644 --- a/exampleSite/resources/_gen/assets/js/js/staticman.js_8cd1ffcbd6280a9d3369580fb528eb22.content +++ b/exampleSite/resources/_gen/assets/js/js/staticman.js_8cd1ffcbd6280a9d3369580fb528eb22.content @@ -53,7 +53,8 @@ $(document).ready(function() { .filter(function() { return this.name.match(/^fields\[.*\]$/); }) - .val(''); // empty all hidden fields but not options + .val(''); // empty all text & hidden fields but not options + $('.post-new-comment textarea').val(''); // empty text area $('.post-new-comment .submit-success').addClass('hidden'); // hide submission status $('.post-new-comment .submit-failed').addClass('hidden'); // hide submission status }