AutoCommit Son Aug 2 15:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-02 15:03:01 +02:00
parent 15b70ad8c6
commit 270f42bba1
3 changed files with 8 additions and 23 deletions

View File

@@ -1,3 +1,3 @@
$("#<%= Comment.wrapid_for(@commentable) %>").html("<%= escape_javascript "" %>")
$("#<%= Comment.switchshowid_for(@commentable) %>").attr("href","<%= escape_javascript comments_path(commentable_type: @commentable.class.to_s, commentable_id: @commentable.id) %>")
$("#<%= Comment.switchshowid_for(@commentable) %>").replaceWith("<%= escape_javascript link_to "Comments...", comments_path(commentable_type: @commentable.class.to_s, commentable_id: @commentable.id) %>")