Sha256: f2c371af0fb38f7e53efd1201151cb0752c2aab72f5ce408860e74accf936796
Contents?: true
Size: 362 Bytes
Versions: 19
Compression:
Stored size: 362 Bytes
Contents
- id = dom_id(@comment) - if @comment.errors.empty? $('##{id}').replaceWith('#{ j render(:partial => "comment", :collection => [ @comment ]) }'); $('##{id}').effect("highlight", { duration:1500 }); - else $('##{id}').html('#{ j render(:partial => "edit") }'); $('##{id}').effect("shake", { duration:250, distance: 6 }); $('#comment_comment').focus();
Version data entries
19 entries across 19 versions & 2 rubygems