mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
9 lines
462 B
Text
9 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 %>
|