fix rendering a comment textarea in Google Chrome

This commit is contained in:
Alexander Machehin 2015-05-28 19:43:57 +05:00
parent 7e51f22931
commit acbbe5432f
1 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,12 @@ CommentsController = (Comment, Preview, confirmMessage, $scope, compileHTML, $ro
form = $('.open-comment.comment-'+id)
if form.length is 1
form.removeClass('hidden')
########## Maybe Chrome 43 bug? don't show text in the textarea :(
textarea = form.find('.form-group textarea')
tmp = textarea.val()
textarea.val('')
textarea.val(tmp)
##########
true
else
false