forum_topics/show: fix flickering forum post edit forms.
This commit is contained in:
@@ -7,8 +7,6 @@ ForumPost.initialize_all = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ForumPost.initialize_edit_links = function() {
|
ForumPost.initialize_edit_links = function() {
|
||||||
$(".edit_forum_post, .edit_forum_topic").hide();
|
|
||||||
|
|
||||||
$(".edit_forum_post_link").click(function(e) {
|
$(".edit_forum_post_link").click(function(e) {
|
||||||
var link_id = $(this).attr("id");
|
var link_id = $(this).attr("id");
|
||||||
var forum_post_id = link_id.match(/^edit_forum_post_link_(\d+)$/)[1];
|
var forum_post_id = link_id.match(/^edit_forum_post_link_(\d+)$/)[1];
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ div.list-of-forum-posts {
|
|||||||
padding: 1em;
|
padding: 1em;
|
||||||
margin-left: 14em;
|
margin-left: 14em;
|
||||||
|
|
||||||
|
.edit_forum_post, .edit_forum_topic {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
menu {
|
menu {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user