add inline forum editing
This commit is contained in:
6
app/views/forum_posts/new.js.erb
Normal file
6
app/views/forum_posts/new.js.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
$("#forum_post_body").val("<%= escape_javascript @forum_post.body %>");
|
||||
$("#new-topic-response").show();
|
||||
|
||||
$('html, body').animate({
|
||||
scrollTop: $("#forum_post_body").offset().top - 100
|
||||
}, 500);
|
||||
Reference in New Issue
Block a user