room member separation

This commit is contained in:
2025-05-28 10:03:47 +02:00
parent 71072994b5
commit 92bf70974f
2 changed files with 17 additions and 17 deletions

16
static/js/room-members.js Normal file
View File

@@ -0,0 +1,16 @@
$(document).ready(function() {
// Initialize Select2 for user selection
$('.select2').select2({
theme: 'bootstrap-5',
width: '100%',
placeholder: 'Search for a user...',
allowClear: true
});
// Auto-submit permission form on checkbox change
document.querySelectorAll('.auto-save-perms-form input[type="checkbox"]').forEach(function(checkbox) {
checkbox.addEventListener('change', function() {
this.closest('form').submit();
});
});
});