Skip to content

Commit

Permalink
refactor(comments): minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
talha131 committed Aug 12, 2019
1 parent 309f959 commit 311a7d9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions templates/_includes/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,15 @@ <h6 style="display:none;">Comments</h6>

{% macro comments_common_scripts() %}
<script>
function uncollapse() {
(function () {
if (window.location.hash.match(/^#comment-\d+$/)) {
$('#comment_thread').collapse('show');
}
}
</script>
<script>
uncollapse();
})();
window.onhashchange=function(){
if (window.location.hash.match(/^#comment-\d+$/))
window.location.reload(true);
}
</script>
<script>
$('#comment_thread').on('shown', function () {
var link = document.getElementById('comment-accordion-toggle');
var old_innerHTML = link.innerHTML;
Expand Down

0 comments on commit 311a7d9

Please sign in to comment.