summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/user-settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/user-settings.js')
-rw-r--r--web_src/js/features/user-settings.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/web_src/js/features/user-settings.js b/web_src/js/features/user-settings.js
index 3ed29f39b1..d49bf39275 100644
--- a/web_src/js/features/user-settings.js
+++ b/web_src/js/features/user-settings.js
@@ -1,4 +1,5 @@
import $ from 'jquery';
+import {hideElem, showElem} from '../utils/dom.js';
export function initUserSettings() {
if ($('.user.settings.profile').length > 0) {
@@ -6,11 +7,11 @@ export function initUserSettings() {
const $prompt = $('#name-change-prompt');
const $prompt_redirect = $('#name-change-redirect-prompt');
if ($(this).val().toString().toLowerCase() !== $(this).data('name').toString().toLowerCase()) {
- $prompt.show();
- $prompt_redirect.show();
+ showElem($prompt);
+ showElem($prompt_redirect);
} else {
- $prompt.hide();
- $prompt_redirect.hide();
+ hideElem($prompt);
+ hideElem($prompt_redirect);
}
});
}