mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix people and space filters (#6656)
Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
parent
c9dd93c076
commit
ae8f2fa342
@ -7,6 +7,7 @@ HumHub Changelog
|
||||
- Fix #6645: File dropdown not visible at the bottom of the page
|
||||
- Fix #6639: Apply image inline styles in email message
|
||||
- Fix #6649: Fix birthday format on welcome page
|
||||
- Fix #6656: Fix people and space filters
|
||||
- Fix #6652: Fix profile update on welcome page
|
||||
- Fix #6660: Fix memory usage on integrity check
|
||||
|
||||
|
@ -3,11 +3,17 @@ humhub.module('cards', function(module, require, $) {
|
||||
const loader = require('ui.loader');
|
||||
|
||||
const applyFilters = function(evt) {
|
||||
const form = $(evt.$trigger).closest('form');
|
||||
form.find('select[data-select2-id] option[data-id]').each(function() {
|
||||
$(this).val($(this).data('id'));
|
||||
$(evt.$trigger).closest('form').submit();
|
||||
}
|
||||
|
||||
const initFiltersForm = function () {
|
||||
const form = $('form.form-search');
|
||||
form.find('input[type=text]:first').focus();
|
||||
form.on('submit', function () {
|
||||
$(this).find('select[data-select2-id] option[data-id]').each(function() {
|
||||
$(this).val($(this).data('id'));
|
||||
});
|
||||
});
|
||||
form.submit();
|
||||
}
|
||||
|
||||
const selectTag = function (evt) {
|
||||
@ -115,7 +121,7 @@ humhub.module('cards', function(module, require, $) {
|
||||
|
||||
const init = function() {
|
||||
hideLastNotCompletedRow();
|
||||
$('input.form-search-filter[name=keyword]').focus();
|
||||
initFiltersForm();
|
||||
initScroll();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user