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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user