Sha256: 9147f6998fc7cd0e362254fdfa193ccb131007560d37c15a8ffd41157b70cd7e

Contents?: true

Size: 1.6 KB

Versions: 19

Compression:

Stored size: 1.6 KB

Contents

     <script type="text/javascript">
				$(document).ready(function () {

					if (authByCookie()){
					  //Authentication by cookie
            
            $("#passwordFormChat").hide();
            $('.connectChatButton').bind('click', function () {
							if (requestConnectToChat()){
								connectToChat(user_jid,cookie,null);
							}
            });
            
					} else {
						//Authentication by password
            
            if ((window.sessionStorage) && (sessionStorage.getItem("ss_user_pass") != null)) {
              $("#passwordFormChat").hide();
            } else {
              $("#passwordFormChat").show();
            }
            
            $('.connectChatButton').bind('click', function () {
							if (requestConnectToChat()) {
								connectToChat(user_jid,null,$('#user_password').val());
			        }
            });
          
            $('.storePass').bind('click', function () {
              storePassword();
            });
						
					}
					
        });
		
      </script>
			
			<div class="block">
        <div class="header">
          <%=image_tag("btn/btn_friend.png", :class => "header_icon")%>
          <div class="header_text">
            <p id="chat_header_title"><%=t('chat.disconnected')%></p>
          </div>
        </div>
      </div>
  
      <div class="chat_off">
      	<div id="passwordFormChat">
      	  <label for="user_password" class="chatPasswordTitle"><%=t('chat.password')%></label>
          <input id="user_password" class="chat_password" type="password"></input>
				</div>
				<input class="connectChatButton storePass" value="Connect">
      </div>

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
social_stream-0.21.3 presence/app/views/chat/_off.html.erb
social_stream-presence-0.7.3 app/views/chat/_off.html.erb
social_stream-0.21.2 presence/app/views/chat/_off.html.erb
social_stream-presence-0.7.2 app/views/chat/_off.html.erb
social_stream-0.21.1 presence/app/views/chat/_off.html.erb
social_stream-presence-0.7.1 app/views/chat/_off.html.erb
social_stream-0.21.0 presence/app/views/chat/_off.html.erb
social_stream-presence-0.7.0 app/views/chat/_off.html.erb
social_stream-presence-0.6.3 app/views/chat/_off.html.erb
social_stream-0.20.2 presence/app/views/chat/_off.html.erb
social_stream-presence-0.6.2 app/views/chat/_off.html.erb
social_stream-0.20.1 presence/app/views/chat/_off.html.erb
social_stream-presence-0.6.1 app/views/chat/_off.html.erb
social_stream-0.20.0 presence/app/views/chat/_off.html.erb
social_stream-presence-0.6.0 app/views/chat/_off.html.erb
social_stream-presence-0.5.4 app/views/chat/_off.html.erb
social_stream-presence-0.5.3 app/views/chat/_off.html.erb
social_stream-0.19.3 presence/app/views/chat/_off.html.erb
social_stream-presence-0.5.2 app/views/chat/_off.html.erb