From 92dd7b064dc74dca2b04d00d5a1f70a9185bcab6 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Jul 13 2017 21:01:21 +0000 Subject: Show the inline comment in the PR's comments by default. Fixes #1685 Merges https://pagure.io/pagure/pull-request/2402 Signed-off-by: Clement Verna --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 25771e4..a6f2891 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -535,7 +535,7 @@ {{ comment.date_created | humanize }} - (Show) + (Hide)
{{ comment.comment }}
@@ -966,13 +966,13 @@ function show_merge_status(){ $(document).ready(function() { - $(".inline-comments").hide(); + $(".inline-comments").show(); $( ".inline-btn" ).click(function() { var msgid = $( this ).attr('data-id'); - if ($( this ).html() == 'Show') { - $( this ).html('Hide'); - } else { + if ($( this ).html() == 'Hide') { $( this ).html('Show'); + } else { + $( this ).html('Hide'); } $( '#inline-comment-' + msgid).toggle(); });