mirror of https://github.com/abpframework/abp.git
5 changed files with 40 additions and 4 deletions
@ -0,0 +1,22 @@ |
|||
$(document).ready(function () { |
|||
$(document).on('click', '#PasswordVisibilityButton', function () { |
|||
let button = $(this); |
|||
let passwordInput = button.parent().find("input"); |
|||
if (!passwordInput) { |
|||
return; |
|||
} |
|||
|
|||
if (passwordInput.attr("type") === "password") { |
|||
passwordInput.attr("type", "text"); |
|||
} |
|||
else { |
|||
passwordInput.attr("type", "password"); |
|||
} |
|||
|
|||
let icon = button.find("i"); |
|||
if (icon) { |
|||
icon.toggleClass("fa-eye-slash").toggleClass("fa-eye"); |
|||
} |
|||
}) |
|||
}); |
|||
|
|||
Loading…
Reference in new issue