Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Fixed clearForm() again to empt textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentTam committed Aug 22, 2019
1 parent f513354 commit ffa6711
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion assets/js/staticman.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ffa6711

Please sign in to comment.