Skip to content

Commit 16bc2b9

Browse files
committed
fix merge conflict relicts
1 parent d105721 commit 16bc2b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web_src/js/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,7 @@ function initAdmin() {
17941794
if ($('.admin.new.user').length > 0 || $('.admin.edit.user').length > 0) {
17951795
$('#login_type').on('change', function () {
17961796
if ($(this).val().substring(0, 1) === '0') {
1797+
$('#user_name').removeAttr('disabled');
17971798
$('#login_name').removeAttr('required');
17981799
$('.non-local').hide();
17991800
$('.local').show();
@@ -1803,6 +1804,7 @@ function initAdmin() {
18031804
$('#password').attr('required', 'required');
18041805
}
18051806
} else {
1807+
$('#user_name').attr('disabled', 'disabled');
18061808
$('#login_name').attr('required', 'required');
18071809
$('.non-local').show();
18081810
$('.local').hide();

0 commit comments

Comments
 (0)