Sha256: a26e5f0de1745b5d295c1012e73c1c59639043907ee3a8a16fbc84656baf787f
Contents?: true
Size: 560 Bytes
Versions: 14
Compression:
Stored size: 560 Bytes
Contents
//////////////////// //Store password with session storage //////////////////// $(document).ready(function () { $('.storePass').bind('click', function () { storePassword(); }); }); function storePassword() { 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()); } } }
Version data entries
14 entries across 14 versions & 2 rubygems