Sha256: e1b80c977f3ee1ca66551e1c931310d426efe740e3711e02c9499a023e1f9483
Contents?: true
Size: 1.43 KB
Versions: 8
Compression:
Stored size: 1.43 KB
Contents
<% if current_user and current_subject.subject_type=="User" %> <% content_for :headers do %> <%= stylesheet_link_tag "chat.css", :media => "screen, projection" %> <%= javascript_include_tag 'jquery-ui-1.8.14.custom.min'%> <%= javascript_include_tag 'jquery.ui.chatbox'%> <%= javascript_include_tag 'jquery.tools.min'%> <%= javascript_include_tag 'strophe'%> <%= javascript_include_tag 'xmpp_client'%> <%= javascript_include_tag 'store'%> <% end %> <script type="text/javascript"> //Global variables var BOSH_SERVICE = '<%= SocialStream::Presence.bosh_service || root_url + "http-bind/" %>'; var cookie = "AuthenticationByCookie>>" + "<%=cookies[Rails.application.config.session_options[:key]]%>"; var domain = '<%=SocialStream::Presence.domain%>'; var user_name = '<%=current_user.name%>'; var user_slug = '<%=current_user.slug%>'; var user_jid = '<%=current_user.slug%>'+"@"+domain; var sound_path = "/assets/audio/chat/onMessage"; $(document).ready(function () { if (authByCookie()){ if (connectToServerWithCookie()==false){ refreshChatWindow(); } } else { if (connectToServerWithPassword(null)==false){ refreshChatWindow(); } } initialTimer = setTimeout("updateChatWindow()", 15000); initAudio(); }); </script> <div id="chat_partial"> <%= render :partial => 'xmpp/chat_connecting' %> </div> <% end %>
Version data entries
8 entries across 8 versions & 2 rubygems