diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 212bd46..a52602c 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -874,6 +874,11 @@ function try_async_comment(form, inline) { .done(function(data) { if(data == 'ok') { $('#comment').val(''); + $('#preview').html(''); + $('#previewinmarkdown').addClass('inactive'); + $('#previewinmarkdown').removeClass('active'); + $('#preview').hide(); + $('#comment').show(); /* We have submitted the comment correctly */ var item = $('.pr_comment_form').closest('tr'); if (!$(item.parent().children()[1]).is(':visible')){