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

View File

@@ -130,21 +130,5 @@
{% block extra_js %}
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
<script>
$(document).ready(function() {
$('.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();
});
});
});
</script>
<script src="{{ url_for('static', filename='js/room-members.js') }}"></script>
{% endblock %}