| 609 | $('#instruct_system_same_as_user').on('input', function () { | 609 | $('#instruct_system_same_as_user').on('input', function () { |
| 610 | const state = !!$(this).prop('checked'); | 610 | const state = !!$(this).prop('checked'); |
| 611 | if (state) { | 611 | if (state) { |
| 612 | const tempHeightForDisabled = $('#instruct_system_sequence').css('height'); | | |
| 613 | $('#instruct_system_sequence_block').addClass('disabled'); | 612 | $('#instruct_system_sequence_block').addClass('disabled'); |
| 614 | $('#instruct_system_suffix_block').addClass('disabled'); | 613 | $('#instruct_system_suffix_block').addClass('disabled'); |
| 615 | $('#instruct_system_sequence').css('height', tempHeightForDisabled); | 614 | $('#instruct_system_sequence').css('height', 'auto'); |
| 616 | $('#instruct_system_suffix').css('height', tempHeightForDisabled); | 615 | $('#instruct_system_suffix').css('height', 'auto'); |
| 617 | $('#instruct_system_sequence').prop('contenteditable', false); | 616 | $('#instruct_system_sequence').prop('contenteditable', false); |
| 618 | $('#instruct_system_suffix').prop('contenteditable', false); | 617 | $('#instruct_system_suffix').prop('contenteditable', false); |
| 619 | } else { | 618 | } else { |