Sha256: 7dd6c713353001c7cbaa065a8ce83ed7f4b7b1fd218497db33fd0c45596a029e
Contents?: true
Size: 1.17 KB
Versions: 5
Compression:
Stored size: 1.17 KB
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) %>"); var link_tie = $("#tie_link<%= dom_id(@tie.receiver_subject) %>"); <% if @tie.receiver_subject.is_a?(Group) && ! @tie.relation.granted #group follower %> // add to group list if ($('#carousel_ul').length) { // element found $("#carousel_ul").prepend("<%= escape_javascript(render @tie.receiver_subject) %>"); }else{ // no element found $("#my_groups").html("<%= escape_javascript(render 'users/groups' )%>"); } $("#group_count").html("<%=current_user.recent_groups.count%>"); link_tie.replaceWith("<%= escape_javascript(link_follow_state) %>"); link_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
5 entries across 5 versions & 1 rubygems