Sha256: 52e8bcd35150a473f78febb0490f0e09b84d070c91e0cb325a41ea59b4d96b0b

Contents?: true

Size: 525 Bytes

Versions: 52

Compression:

Stored size: 525 Bytes

Contents

<% if @comment.valid? %>
  //Display the new comment
  $("#comments_activity_<%= @comment.post_activity.parent.id %>").append("<%= escape_javascript(render @comment.post_activity) %>");
  $(".activities_comment_btn").hide();
  $(".input_new_comments").each(function() {
    $(this).focus().val("").blur();   
  });

  SocialStream.Timeline.create("<%= escape_javascript dom_id(@comment.post_activity) %>");
<% else %>
  SocialStream.Timeline.create();
  alert('<%= j @comment.errors.full_messages.to_sentence %>');
<% end %>

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
social_stream-base-0.22.0 app/views/comments/create.js.erb
social_stream-0.27.3 base/app/views/comments/create.js.erb
social_stream-0.27.2 base/app/views/comments/create.js.erb
social_stream-base-0.21.2 app/views/comments/create.js.erb
social_stream-0.27.1 base/app/views/comments/create.js.erb
social_stream-base-0.21.1 app/views/comments/create.js.erb
social_stream-0.27.0 base/app/views/comments/create.js.erb
social_stream-base-0.21.0 app/views/comments/create.js.erb
social_stream-0.26.2 base/app/views/comments/create.js.erb
social_stream-base-0.20.2 app/views/comments/create.js.erb
social_stream-0.26.1 base/app/views/comments/create.js.erb
social_stream-base-0.20.1 app/views/comments/create.js.erb