Sha256: 254534ea0ae749aabec5b80ff0a98587115daa26c7a46e8a81c1050d0f5dc97a

Contents?: true

Size: 1.37 KB

Versions: 6

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

6 entries across 6 versions & 2 rubygems

Version Path
social_stream-0.20.1 presence/app/views/chat/_index.html.erb
social_stream-presence-0.6.1 app/views/chat/_index.html.erb
social_stream-0.20.0 presence/app/views/chat/_index.html.erb
social_stream-presence-0.6.0 app/views/chat/_index.html.erb
social_stream-presence-0.5.4 app/views/chat/_index.html.erb
social_stream-presence-0.5.3 app/views/chat/_index.html.erb