Sha256: 738976834bce406060ed888bf6bf634a70b0c827ae90d36f131cbdb4e0fab9c8

Contents?: true

Size: 401 Bytes

Versions: 25

Compression:

Stored size: 401 Bytes

Contents

<% if @comment.valid? %>
  SocialStream.Comment.create({
    id: <%= @comment.id %>,
    parentActivityId: <%= @comment.post_activity.parent.id %>,
    html: "<%= j render(@comment.post_activity) %>"
  });

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

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
social_stream-2.2.2 base/app/views/comments/create.js.erb
social_stream-base-2.2.2 app/views/comments/create.js.erb
social_stream-2.2.1 base/app/views/comments/create.js.erb
social_stream-base-2.2.1 app/views/comments/create.js.erb
social_stream-2.2.0 base/app/views/comments/create.js.erb
social_stream-base-2.2.0 app/views/comments/create.js.erb
social_stream-2.1.1 base/app/views/comments/create.js.erb
social_stream-2.1.0 base/app/views/comments/create.js.erb
social_stream-base-2.1.0 app/views/comments/create.js.erb
social_stream-2.0.4 base/app/views/comments/create.js.erb
social_stream-base-2.0.4 app/views/comments/create.js.erb
social_stream-2.0.3 base/app/views/comments/create.js.erb
social_stream-base-2.0.3 app/views/comments/create.js.erb
social_stream-2.0.2 base/app/views/comments/create.js.erb
social_stream-base-2.0.2 app/views/comments/create.js.erb
social_stream-2.0.1 base/app/views/comments/create.js.erb
social_stream-base-2.0.1 app/views/comments/create.js.erb
social_stream-2.0.0 base/app/views/comments/create.js.erb
social_stream-base-2.0.0 app/views/comments/create.js.erb
social_stream-2.0.0.beta3 base/app/views/comments/create.js.erb