Permalink
Browse files

JS: avoid JS errors when hiding the textarea.

  • Loading branch information...
1 parent 4c19eef commit 1daeedb8b50ca8da510b75d3f95796b9165db6e2 @vdboor vdboor committed Jan 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 fluent_comments/static/fluent_comments/js/ajaxcomments.js
@@ -173,7 +173,7 @@
function commentSuccess(data)
{
// Clean form
- $('form.js-comments-form textarea')[0].value = "";
+ $('form.js-comments-form textarea').last().val("");
$('#id_comment').val('');
// Show comment

0 comments on commit 1daeedb

Please sign in to comment.