Skip to content

Commit

Permalink
Change the password toggle click event handler to delegated event han…
Browse files Browse the repository at this point in the history
…dler
  • Loading branch information
vidya-ram committed Jul 1, 2020
1 parent da25171 commit 16cf6cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baseframe/templates/baseframe/mui/forms.html.jinja2
Expand Up @@ -315,12 +315,12 @@
<script type="text/javascript">
$(function() {
{%- endif %}
$('.js-show-password').click(function (argument) {
$('body').on('click', '.js-show-password', function () {
$(this).parent().find('.password-toggle').toggleClass('mui--hide');
$(this).parent().find('input').attr('type', 'text');
});
$('.js-hide-password').click(function (argument) {
$('body').on('click', '.js-hide-password', function () {
$(this).parent().find('.password-toggle').toggleClass('mui--hide');
$(this).parent().find('input').attr('type', 'password');
});
Expand Down

0 comments on commit 16cf6cd

Please sign in to comment.