Skip to content

Commit

Permalink
JS: avoid JS errors when hiding the textarea.
Browse files Browse the repository at this point in the history
  • Loading branch information
vdboor committed Jan 6, 2013
1 parent 4c19eef commit 1daeedb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluent_comments/static/fluent_comments/js/ajaxcomments.js
Expand Up @@ -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
Expand Down

0 comments on commit 1daeedb

Please sign in to comment.