Sha256: 2c6beeb8320553f363a7656f80cbb787a68f4ef86fb8ca8d161561d872ba54ed
Contents?: true
Size: 1.08 KB
Versions: 42
Compression:
Stored size: 1.08 KB
Contents
<% if current_user and current_user.chat_enabled and current_subject.subject_type=="User" %> <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(); initFocusListeners(); }); </script> <div id="chat_partial"> <%= render :partial => 'chat/connecting' %> </div> <% end %>
Version data entries
42 entries across 42 versions & 3 rubygems