Sha256: 18cf6f31b84ee11758e12e189e2509da3b0f22823866c2b4c7f036ba0f8fedc1

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 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["_global_session"]%>";
		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

1 entries across 1 versions & 1 rubygems

Version Path
social_stream-presence-0.0.15 app/views/xmpp/_chat.html.erb