Sha256: ff05d283c387b2fa190a2666e9d6b49827b9b136e8a64f0ea2b447719474c03b

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

<% if @tie.new_record? %>
    $("#tie_<%=dom_id(@tie.receiver_subject)%>").html(<%= @tie.errors.to_xml %>);
<% else %>
  var old_tie = $("#tie_<%= dom_id(@tie.receiver_subject) %>");
  <% if @tie.receiver_subject.is_a?(Group) && ! @tie.relation.granted  #group follower %>
      // add to group list
      $("#groups_list").prepend("<%= escape_javascript(render @tie.receiver_subject) %>");
      old_tie.replaceWith("<%= escape_javascript(link_follow_state) %>");
      old_tie.slideUp(300).delay(800).fadeIn(400);
  <% else %>
    if (old_tie.parent().hasClass('suggestions')) {
      //replace with new suggestion
      old_tie.replaceWith("<%= escape_javascript(render(@tie.sender.suggestion))%>");
      } else {
      old_tie.hide();
    }
    <% if @tie.relation.granted # There was boxy dialog %>
      $(".boxy-inner .close").click();
    <% end %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social_stream-0.1.0 app/views/ties/create.js.erb
social_stream-0.0.5 app/views/ties/create.js.erb