non-instantaneous edit form toggling (#1424)

This commit is contained in:
Toks
2013-06-14 12:34:32 -04:00
parent 4765ce11b6
commit f644ef69ff
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@
$(".edit_comment_link").click(function(e) {
var link_id = $(this).attr("id");
var comment_id = link_id.match(/^edit_comment_link_(\d+)$/)[1];
$("#edit_comment_" + comment_id).toggle();
$("#edit_comment_" + comment_id).fadeToggle("fast");
e.preventDefault();
});
}

View File

@@ -13,14 +13,14 @@
$(".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];
$("#edit_forum_post_" + forum_post_id).toggle();
$("#edit_forum_post_" + forum_post_id).fadeToggle("fast");
e.preventDefault();
});
$(".edit_forum_topic_link").click(function(e) {
var link_id = $(this).attr("id");
var forum_topic_id = link_id.match(/^edit_forum_topic_link_(\d+)$/)[1];
$("#edit_forum_topic_" + forum_topic_id).toggle();
$("#edit_forum_topic_" + forum_topic_id).fadeToggle("fast");
e.preventDefault();
});
}