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-1.1.12 base/app/views/comments/create.js.erb
social_stream-base-1.1.11 app/views/comments/create.js.erb
social_stream-1.1.11 base/app/views/comments/create.js.erb
social_stream-base-1.1.10 app/views/comments/create.js.erb
social_stream-1.1.10 base/app/views/comments/create.js.erb
social_stream-base-1.1.9 app/views/comments/create.js.erb
social_stream-1.1.9 base/app/views/comments/create.js.erb
social_stream-base-1.1.8 app/views/comments/create.js.erb
social_stream-1.1.8 base/app/views/comments/create.js.erb
social_stream-base-1.1.7 app/views/comments/create.js.erb
social_stream-1.1.7 base/app/views/comments/create.js.erb
social_stream-base-1.1.6 app/views/comments/create.js.erb
social_stream-1.1.6 base/app/views/comments/create.js.erb
social_stream-base-1.1.5 app/views/comments/create.js.erb
social_stream-1.1.5 base/app/views/comments/create.js.erb
social_stream-base-1.1.4 app/views/comments/create.js.erb
social_stream-1.1.4 base/app/views/comments/create.js.erb
social_stream-1.1.3 base/app/views/comments/create.js.erb
social_stream-base-1.1.3 app/views/comments/create.js.erb
social_stream-1.1.2 base/app/views/comments/create.js.erb