@ -0,0 +1,8 @@
// Copyright (c) 2018 Tildes contributors <code@tildes.net>
// SPDX-License-Identifier: AGPL-3.0-or-later
$.onmount('[data-js-hide-sidebar-no-preventdefault]', function() {
$(this).on('click', function(event) {
$('#sidebar').removeClass('is-sidebar-displayed');
});
@ -261,7 +261,7 @@
<dt>Last comment posted</dt>
<dd>
<a href="{{ comments.most_recent_comment.permalink }}">
<a href="{{ comments.most_recent_comment.permalink }}" data-js-hide-sidebar-no-preventdefault>
{{ time_ago(topic.last_activity_time) }}
</a>
</dd>