mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
8 lines
462 B
Text
8 lines
462 B
Text
<% if @shoutmsg.domain == "shoutbox" %>
|
|
$("div#shoutbox").prepend("<%= escape_javascript(render("shoutmsg", :shoutmsg => @shoutmsg)) %>");
|
|
$("form#new_shoutbox")[0].reset();
|
|
<% else %>
|
|
$("div#<%= @shoutmsg.domain %>").append("<%= escape_javascript(render("shoutmsg", :shoutmsg => @shoutmsg)) %>");
|
|
$("div#<%= @shoutmsg.domain %>").scrollTop($("div#<%= @shoutmsg.domain %>")[0].scrollHeight);
|
|
$("form#new_<%= @shoutmsg.domain %>")[0].reset();
|
|
<% end %>
|