mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
run passStrength after loading page with ajax
This commit is contained in:
parent
4209b1033a
commit
60a71e2397
|
@ -381,6 +381,20 @@ $(document).ready( function() {
|
|||
width: '100%',
|
||||
templateResult: chzn_template_func
|
||||
});
|
||||
$(".pwd").passStrength({ /* {{{ */
|
||||
url: "../op/op.Ajax.php",
|
||||
onChange: function(data, target) {
|
||||
pwsp = 100*data.score;
|
||||
$('#'+target+' div.bar').width(pwsp+'%');
|
||||
if(data.ok) {
|
||||
$('#'+target+' div.bar').removeClass('bar-danger');
|
||||
$('#'+target+' div.bar').addClass('bar-success');
|
||||
} else {
|
||||
$('#'+target+' div.bar').removeClass('bar-success');
|
||||
$('#'+target+' div.bar').addClass('bar-danger');
|
||||
}
|
||||
}
|
||||
}); /* }}} */
|
||||
});
|
||||
}); /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user