Sha256: c5ebf1b2ec75e59beec89a04a29e0a3a223e63c3d798efddba57f41b8a6e3aa8

Contents?: true

Size: 1.72 KB

Versions: 16

Compression:

Stored size: 1.72 KB

Contents

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

          connectButtonTimer = setInterval("connectButtonTimerFunction()", 1000)
					connectButtonTimerCounter=periodBetweenAttempts+1

					if (authByCookie()){
					  //Authentication by cookie
            
            $("#passwordFormChat").hide();
            $('.connectChatButton').bind('click', function () {
							if (requestConnectToChat()){
								connectToServerWithCookie();
							}
            });
            
					} else {
						//Authentication by password
            
            if ((window.sessionStorage) && (sessionStorage.getItem("ss_user_pass") != null)) {
              $("#passwordFormChat").hide();
            } else {
              $("#passwordFormChat").show();
            }
            
            $('.connectChatButton').bind('click', function () {
							if (requestConnectToChat()) {
								connectToServerWithPassword($('#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

16 entries across 16 versions & 2 rubygems

Version Path
social_stream-0.13.1 presence/app/views/chat/_off.html.erb
social_stream-presence-0.1.2 app/views/chat/_off.html.erb
social_stream-0.13.0 presence/app/views/chat/_off.html.erb
social_stream-presence-0.1.1 app/views/chat/_off.html.erb
social_stream-0.12.14 presence/app/views/chat/_off.html.erb
social_stream-0.12.13 presence/app/views/chat/_off.html.erb
social_stream-0.12.12 presence/app/views/chat/_off.html.erb
social_stream-presence-0.1.0 app/views/chat/_off.html.erb
social_stream-0.12.11 presence/app/views/chat/_off.html.erb
social_stream-0.12.10 presence/app/views/chat/_off.html.erb
social_stream-0.12.9 presence/app/views/chat/_off.html.erb
social_stream-0.12.8 presence/app/views/xmpp/_chat_off.html.erb
social_stream-0.12.7 presence/app/views/xmpp/_chat_off.html.erb
social_stream-0.12.6 presence/app/views/xmpp/_chat_off.html.erb
social_stream-0.12.5 presence/app/views/xmpp/_chat_off.html.erb
social_stream-presence-0.0.21 app/views/xmpp/_chat_off.html.erb