Sha256: 0c5e1f53cce75bff319dde6464e84cfcbf20f4f644fe70379146bd2625b81c7d

Contents?: true

Size: 1.46 KB

Versions: 4

Compression:

Stored size: 1.46 KB

Contents

     <script type="text/javascript">
        $(document).ready(function () {
					
					if (authByCookie()){
					  //Authentication by cookie
            
            $("#passwordFormChat").hide();
            $('.connectChatButton').bind('click', function () {
              connectToServerWithCookie();
            });
            
					} else {
						//Authentication by password
            
            if ((window.sessionStorage) && (sessionStorage.getItem("ss_user_pass") != null)) {
              $("#passwordFormChat").hide();
            } else {
              $("#passwordFormChat").show();
            }
            
            $('.connectChatButton').bind('click', function () {
              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">
            Chat Disconnected
          </div>
        </div>
      </div>
  
      <div class="chat_off">
      	<div id="passwordFormChat">
      	  <label for="user_password" class="chatPasswordTitle">Password</label>
          <input id="user_password" class="chat_password" type="password"></input>
				</div>
				<input class="connectChatButton storePass" value="Connect">
      </div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
social_stream-presence-0.0.18 app/views/xmpp/_chat_off.html.erb
social_stream-presence-0.0.17 app/views/xmpp/_chat_off.html.erb
social_stream-presence-0.0.16 app/views/xmpp/_chat_off.html.erb
social_stream-presence-0.0.15 app/views/xmpp/_chat_off.html.erb