mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
9 lines
No EOL
464 B
Text
9 lines
No EOL
464 B
Text
// TODO: fix domain
|
|
<% if @shoutmsgs.length > 0 %>
|
|
$('div#<%= @shoutmsgs.first.domain %>').scrollTop = $('div#shoutbox').scrollHeight
|
|
$("div#<%= @shoutmsgs.first.domain %>").html("<%= escape_javascript(render(:partial => "shoutmsgs/shoutmsg", :collection => @shoutmsgs)) %>");
|
|
|
|
<% if @shoutmsgs.first.domain != "shoutbox" %>
|
|
$("div#<%= @shoutmsgs.first.domain %>").scrollTop($("div#<%= @shoutmsgs.first.domain %>")[0].scrollHeight);
|
|
<% end %>
|
|
<% end %> |