diff --git a/templates/actionbar/media-js.html b/templates/actionbar/media-js.html
index 99ef8c5..e4f281e 100644
--- a/templates/actionbar/media-js.html
+++ b/templates/actionbar/media-js.html
@@ -118,8 +118,11 @@
};
$('.actionbar-comment').on('click', function() {
- $('#comment-section').show();
- $('#write-comment').click();
+ if ($('#comment-section').css('display') == 'none') {
+ $('#comment-section').show();
+ } else {
+ $('#write-comment').click();
+ }
})
});