This repository was archived by the owner on Mar 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,12 +67,16 @@ $('input[name=name]').keyup(processKeyPress);
6767$ ( 'input[name=password]' ) . keyup ( processKeyPress ) ;
6868$ ( 'input[name=passwordConfirm]' ) . keyup ( processKeyPress ) ;
6969
70- $ ( ".glyphicon-eye-open" ) . mousedown ( function ( ) {
71- $ ( this ) . prev ( ) . attr ( 'type' , 'text' ) ;
72- } ) . mouseup ( function ( ) {
73- $ ( this ) . prev ( ) . attr ( 'type' , 'password' ) ;
74- } ) . mouseout ( function ( ) {
75- $ ( this ) . prev ( ) . attr ( 'type' , 'password' ) ;
70+ $ ( ".showpwdicon" ) . click ( function ( ) {
71+ if ( $ ( this ) . prev ( ) . attr ( 'type' ) == "text" ) {
72+ $ ( this ) . prev ( ) . attr ( 'type' , 'password' ) ;
73+ $ ( this ) . addClass ( 'glyphicon-eye-open' )
74+ $ ( this ) . removeClass ( 'glyphicon-eye-close' )
75+ } else {
76+ $ ( this ) . prev ( ) . attr ( 'type' , 'text' ) ;
77+ $ ( this ) . addClass ( 'glyphicon-eye-close' )
78+ $ ( this ) . removeClass ( 'glyphicon-eye-open' )
79+ }
7680} ) ;
7781
7882$ ( "#printBtn" ) . click ( function ( ) {
Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ <h3 class="panel-title">Plaintext Password</h3>
5959 < label > < i class ="fa fa-key "> </ i > Password</ label >
6060 < div class ="password ">
6161 < input class ="form-control " class ="form-control " type =password name ="password " />
62- < span class ="glyphicon glyphicon-eye-open "> </ span >
62+ < span class ="glyphicon glyphicon-eye-open showpwdicon "> </ span >
6363 </ div >
6464 </ div >
6565 < div class ="form-group ">
6666 < label > < i class ="fa fa-key "> </ i > Confirm Password</ label >
6767 < div class ="password ">
6868 < input class ="form-control " class ="form-control " type =password name ="passwordConfirm " />
69- < span class ="glyphicon glyphicon-eye-open "> </ span >
69+ < span class ="glyphicon glyphicon-eye-open showpwdicon "> </ span >
7070 </ div >
7171 </ div >
7272 < div class ="form-group hidden-print result ">
You can’t perform that action at this time.
0 commit comments