Sha256: 2c94a9cd98c5877f693a9222588caf0d3a1a0aac0a9d7717af4ede5d0794dd7c

Contents?: true

Size: 236 Bytes

Versions: 20

Compression:

Stored size: 236 Bytes

Contents

var $form = $("form#new_blog_comment");
<% if @comment.save %>
  $("#comments").append("<%= escape_javascript(render(@comment)) %>");
  $form.get(0).reset();
<% else %>
  $form.html("<%= escape_javascript(render('form')) %>");
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
blogit-0.8.0 app/views/blogit/comments/create.js.erb
blogit-0.7.0 app/views/blogit/comments/create.js.erb
blogit-0.6.0 app/views/blogit/comments/create.js.erb
blogit-0.5.1 app/views/blogit/comments/create.js.erb
blogit-0.5.0 app/views/blogit/comments/create.js.erb
blogit-0.4.8 app/views/blogit/comments/create.js.erb
blogit-0.4.7 app/views/blogit/comments/create.js.erb
blogit-0.4.6 app/views/blogit/comments/create.js.erb
blogit-0.4.5 app/views/blogit/comments/create.js.erb
blogit-0.4.4 app/views/blogit/comments/create.js.erb
blogit-0.4.3 app/views/blogit/comments/create.js.erb
blogit-0.4.2 app/views/blogit/comments/create.js.erb
blogit-0.4.1 app/views/blogit/comments/create.js.erb
blogit-0.4.0 app/views/blogit/comments/create.js.erb
blogit-0.3.2 app/views/blogit/comments/create.js.erb
blogit-0.3.1 app/views/blogit/comments/create.js.erb
blogit-0.3.0 app/views/blogit/comments/create.js.erb
blogit-0.2.1 app/views/blogit/comments/create.js.erb
blogit-0.2.0 app/views/blogit/comments/create.js.erb
blogit-0.1.0 app/views/blogit/comments/create.js.erb