Sha256: c8a9e45db12d1994c07493b6744578db91725b5706ae95b9fe5c4c36d33d05a0

Contents?: true

Size: 1.46 KB

Versions: 5

Compression:

Stored size: 1.46 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();
				initFocusListeners();
				
		});
		
	</script>
			

	<div id="chat_partial">		
	  <%= render :partial => 'xmpp/chat_connecting' %>
	</div>
	
<% end %>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
social_stream-0.12.8 presence/app/views/xmpp/_chat.html.erb
social_stream-0.12.7 presence/app/views/xmpp/_chat.html.erb
social_stream-0.12.6 presence/app/views/xmpp/_chat.html.erb
social_stream-0.12.5 presence/app/views/xmpp/_chat.html.erb
social_stream-presence-0.0.21 app/views/xmpp/_chat.html.erb