You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user-settings.js 497B

123456789101112131415
  1. export function initUserSettings() {
  2. if ($('.user.settings.profile').length > 0) {
  3. $('#username').on('keyup', function () {
  4. const $prompt = $('#name-change-prompt');
  5. const $prompt_redirect = $('#name-change-redirect-prompt');
  6. if ($(this).val().toString().toLowerCase() !== $(this).data('name').toString().toLowerCase()) {
  7. $prompt.show();
  8. $prompt_redirect.show();
  9. } else {
  10. $prompt.hide();
  11. $prompt_redirect.hide();
  12. }
  13. });
  14. }
  15. }