We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d105721 commit 16bc2b9Copy full SHA for 16bc2b9
web_src/js/index.js
@@ -1794,6 +1794,7 @@ function initAdmin() {
1794
if ($('.admin.new.user').length > 0 || $('.admin.edit.user').length > 0) {
1795
$('#login_type').on('change', function () {
1796
if ($(this).val().substring(0, 1) === '0') {
1797
+ $('#user_name').removeAttr('disabled');
1798
$('#login_name').removeAttr('required');
1799
$('.non-local').hide();
1800
$('.local').show();
@@ -1803,6 +1804,7 @@ function initAdmin() {
1803
1804
$('#password').attr('required', 'required');
1805
}
1806
} else {
1807
+ $('#user_name').attr('disabled', 'disabled');
1808
$('#login_name').attr('required', 'required');
1809
$('.non-local').show();
1810
$('.local').hide();
0 commit comments