1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Password generator preventDefault enhancement

This commit is contained in:
SecretR
2012-12-10 16:06:38 +02:00
parent f7876daec6
commit 6d914fb08c

View File

@@ -117,7 +117,8 @@ jQuery.fn.pwdMeter = function(options){
}
$('#Spn_PasswordGenerator').click(function(){
$('#Spn_PasswordGenerator').click(function(event){
event.preventDefault();
var randomPassword = random_password();
$('#Spn_NewPassword').text(randomPassword);
$(options.passwordBox).val(randomPassword);
@@ -125,7 +126,8 @@ jQuery.fn.pwdMeter = function(options){
evaluateMeter();
});
$("#showPwd").click(function () {
$("#showPwd").click(function (event) {
event.preventDefault();
var id = $(pwdObj).attr("type");
$(pwdObj).toggle();
$("#showPwdBox").toggle();