Sha256: 1d33194af7907d3f4e467840bacf09f5985e3da85e9077d6698e3e55ebf78d89

Contents?: true

Size: 768 Bytes

Versions: 56

Compression:

Stored size: 768 Bytes

Contents

////////////////////
//STORE MODULE: Store password with session storage
////////////////////

PRESENCE.STORE = (function(P,$,undefined){

  var init = function(){ }
	
	var storePassword = function() {
  
    //Dont store password if cookie authentication is enable
    if (PRESENCE.XMPPClient.authByCookie()) {
      return
    }
    
    if (window.sessionStorage) {
      if (($("#user_password").length==1)&&($("#user_password").val()!="")){
        sessionStorage.setItem("ss_user_pass", $('#user_password').val());
      } else if (($("#password").length==1)&&($("#password").val()!="")){
        sessionStorage.setItem("ss_user_pass", $('#password').val());
      }
    }
}

  return {
    init: init,
		storePassword: storePassword
  };

}) (PRESENCE, jQuery);

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
social_stream-2.2.2 presence/app/assets/javascripts/presence_store.js
social_stream-presence-2.2.1 app/assets/javascripts/presence_store.js
social_stream-2.2.1 presence/app/assets/javascripts/presence_store.js
social_stream-2.2.0 presence/app/assets/javascripts/presence_store.js
social_stream-presence-2.2.0 app/assets/javascripts/presence_store.js
social_stream-2.1.1 presence/app/assets/javascripts/presence_store.js
social_stream-1.1.12 presence/app/assets/javascripts/presence_store.js
social_stream-2.1.0 presence/app/assets/javascripts/presence_store.js
social_stream-presence-2.1.0 app/assets/javascripts/presence_store.js
social_stream-2.0.4 presence/app/assets/javascripts/presence_store.js
social_stream-presence-2.0.2 app/assets/javascripts/presence_store.js
social_stream-2.0.3 presence/app/assets/javascripts/presence_store.js
social_stream-1.1.11 presence/app/assets/javascripts/presence_store.js
social_stream-1.1.10 presence/app/assets/javascripts/presence_store.js
social_stream-1.1.9 presence/app/assets/javascripts/presence_store.js
social_stream-1.1.8 presence/app/assets/javascripts/presence_store.js
social_stream-2.0.2 presence/app/assets/javascripts/presence_store.js
social_stream-presence-2.0.1 app/assets/javascripts/presence_store.js
social_stream-2.0.1 presence/app/assets/javascripts/presence_store.js
social_stream-2.0.0 presence/app/assets/javascripts/presence_store.js