(function ($) { $(document).on("click", ".password_preview", function (e) { e.preventDefault(); var ursL10n = user_registration_params.ursL10n; var current_task = $(this).hasClass("dashicons-hidden") ? "show" : "hide"; var $password_field = $(this) .closest(".user-registration-form-row") .find('input[name="password"]'); // Hide/show password for user registration form if ($password_field.length === 0) { $password_field = $(this) .closest(".field-user_pass") .find('input[name="user_pass"]'); } if ($password_field.length === 0) { $password_field = $(this) .closest(".field-user_confirm_password") .find('input[name="user_confirm_password"]'); } // Hide/show password for edit password form if ($password_field.length === 0) { $password_field = $(this) .closest(".user-registration-form-row") .find('input[name="password_current"]'); } if ($password_field.length === 0) { $password_field = $(this) .closest(".user-registration-form-row") .find('input[name="password_1"]'); } if ($password_field.length === 0) { $password_field = $(this) .closest(".user-registration-form-row") .find('input[name="password_2"]'); } if ($password_field.length === 0) { $password_field = $(this) .closest(".field-password") .find(".input-password"); } if ($password_field.length > 0) { switch (current_task) { case "show": $password_field.attr("type", "text"); $(this) .removeClass("dashicons-hidden") .addClass("dashicons-visibility"); $(this).attr("title", ursL10n.hide_password_title); break; case "hide": $password_field.attr("type", "password"); $(this) .removeClass("dashicons-visibility") .addClass("dashicons-hidden"); $(this).attr("title", ursL10n.show_password_title); break; } } }); })(jQuery);
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
jquery.min.js | File | 23.98 KB | 0644 |
|
jquery.validate.js | File | 49.97 KB | 0644 |
|
jquery.validate.min.js | File | 24.02 KB | 0644 |
|
lost-password.js | File | 146 B | 0644 |
|
lost-password.min.js | File | 126 B | 0644 |
|
my-account.js | File | 8.77 KB | 0644 |
|
my-account.min.js | File | 4.94 KB | 0644 |
|
password-strength-meter.js | File | 5.59 KB | 0644 |
|
password-strength-meter.min.js | File | 2.69 KB | 0644 |
|
ur-common.js | File | 1.85 KB | 0644 |
|
ur-common.min.js | File | 1.15 KB | 0644 |
|
ur-login.js | File | 3.87 KB | 0644 |
|
ur-login.min.js | File | 2.24 KB | 0644 |
|
user-registration-form-validator.js | File | 19.15 KB | 0644 |
|
user-registration-form-validator.min.js | File | 10.92 KB | 0644 |
|
user-registration-recaptcha.js | File | 10.59 KB | 0644 |
|
user-registration-recaptcha.min.js | File | 6.71 KB | 0644 |
|
user-registration.js | File | 69.24 KB | 0644 |
|
user-registration.min.js | File | 26.35 KB | 0644 |
|