ensl.org/app/views/users/show.js.erb

7 lines
276 B
Text
Raw Normal View History

$("td#userData").fadeIn("fast");
$("td#userData").html("<%= escape_javascript(render(:partial => @page)) %>");
<% if ["comments", "matches", "predictions", "teams"].include? @page %>
$("td#userData").removeClass("box");
<% else %>
$("td#userData").addClass("box");
<% end %>