Sha256: d7a652208b980c29f84395c6f20c507991bba6b5ff617e10e322f2cb1501b35a
Contents?: true
Size: 538 Bytes
Versions: 2
Compression:
Stored size: 538 Bytes
Contents
<% publish_to "/messages/new" do %> $("#chat").append("<%= escape_javascript new_communication(@message).html_safe %>"); if($("#chatBeam").css("display") != "none") { if ($(".max-chatroom").attr("interval") == null ) { var flash = setInterval(function() { $(".max-chatroom").fadeOut(100).fadeIn(100)}, 300); $(".max-chatroom").attr("interval", flash) } } else { $(".max-chatroom").attr("interval", null) } $("#chat").animate({scrollTop: $("#chat")[0].scrollHeight}, 100); <% end %> $("#new_message_content").val('');
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chatroom-0.1.1 | app/views/chatroom/messages/create.js.erb |
chatroom-0.1.0 | app/views/chatroom/messages/create.js.erb |