AutoCommit Mon Aug 10 18:03:03 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-10 18:03:03 +02:00
parent 07b0755004
commit d628d6cee8
3 changed files with 9 additions and 6 deletions

View File

@@ -1,2 +1,3 @@
$("#<%= divid_for(@comment.parent_object,"newform") %>").html("")
$("#<%= Comment.wrapid_for(@comment.parent_object) %>").html("<%= escape_javascript render partial:"comments/comments", object: @comments %>")
$("#<%= Comment.switchshowid_for(@commentable) %>").replaceWith("<%= escape_javascript link_to "Ausblenden", hide_comments_path(params: {commentable_type: @commentable.class.to_s.gsub("::","_"), commentable_id: @commentable.id}), remote: true , id: Comment.switchshowid_for( @commentable) %>")