window.widget_problemsbysv_form = new class { init() { this._show_type = document.getElementById('show_type'); if (this._show_type !== null) { this._show_type.addEventListener('change', () => this.updateForm()); this.updateForm(); } } updateForm() { const show_type_totals = this._show_type.querySelector('input:checked').value == ; document.getElementById('hide_empty_groups').disabled = show_type_totals; for (const radio of document.querySelectorAll('#layout input')) { radio.disabled = !show_type_totals; } } };