mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +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%',
|
width: '100%',
|
||||||
templateResult: chzn_template_func
|
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