Sha256: 6dc0c95cfb39e0b9d645671d469eab73f39109e04b6e0b19c0b358379e93cc23

Contents?: true

Size: 1.37 KB

Versions: 11

Compression:

Stored size: 1.37 KB

Contents

<% if current_user and current_user.chat_enabled and current_subject.subject_type=="User" %>
	
<div id="chat_wrapper"> 
  <div id="chat_partial">   
    <%= render :partial => 'chat/connecting' %>
  </div>
	<div id="chat_divs">  
	  <div id="chat_div"></div>
	</div>
</div>


<script type="text/javascript">

  //Global variables
  var cookie = "AuthenticationByCookie>>" + "<%=cookies[Rails.application.config.session_options[:key]]%>";
	var BOSH_SERVICE = '<%= SocialStream::Presence.bosh_service || root_url + "http-bind/" %>';
  var user_name = '<%=current_user.name%>';
  var user_slug = '<%=current_user.slug%>';
  var user_jid = '<%=current_user.slug%>'+"@"+domain;


  $(document).ready(function () {
    
      if(getRestoreUserChatStatus()!="offline"){
        connectToChat(user_jid,cookie,null);
        //connectToChat(user_jid,null,null); //To use auth by password.
        
        initialTimer = setTimeout("updateChatWindow()", 15000);
      } else {
        initialTimer = setTimeout("updateChatWindow()", 1);
      }
      
      initAudio();
      initFocusListeners();			
  });
  
</script>

	<% if flow %>
	  <script type="text/javascript">
	  	 $(document).ready(function () {
			 	createMainChatBox();
				addContentToMainChatBox(modifyChatPartialIfMainBox($("#chat_partial")));
				$("#chat_wrapper").find("#chat_partial").remove();
			 });
		</script>
	<% end %>


<% end %>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
social_stream-0.21.3 presence/app/views/chat/_index.html.erb
social_stream-presence-0.7.3 app/views/chat/_index.html.erb
social_stream-0.21.2 presence/app/views/chat/_index.html.erb
social_stream-presence-0.7.2 app/views/chat/_index.html.erb
social_stream-0.21.1 presence/app/views/chat/_index.html.erb
social_stream-presence-0.7.1 app/views/chat/_index.html.erb
social_stream-0.21.0 presence/app/views/chat/_index.html.erb
social_stream-presence-0.7.0 app/views/chat/_index.html.erb
social_stream-presence-0.6.3 app/views/chat/_index.html.erb
social_stream-0.20.2 presence/app/views/chat/_index.html.erb
social_stream-presence-0.6.2 app/views/chat/_index.html.erb