forum_topics/show: fix flickering forum post edit forms.

This commit is contained in:
evazion
2018-08-14 13:47:20 -05:00
parent 7aa2a41798
commit e57eb87632
2 changed files with 4 additions and 2 deletions

View File

@@ -7,8 +7,6 @@ ForumPost.initialize_all = function() {
}
ForumPost.initialize_edit_links = function() {
$(".edit_forum_post, .edit_forum_topic").hide();
$(".edit_forum_post_link").click(function(e) {
var link_id = $(this).attr("id");
var forum_post_id = link_id.match(/^edit_forum_post_link_(\d+)$/)[1];

View File

@@ -43,6 +43,10 @@ div.list-of-forum-posts {
padding: 1em;
margin-left: 14em;
.edit_forum_post, .edit_forum_topic {
display: none;
}
menu {
margin-top: 0.5em;