From 32e22ab542eb43ab55843e87517f701358a69a47 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Tue, 10 Oct 2023 13:34:44 +0200 Subject: [PATCH] fixed: make sure multiselect is also loaded if requested via ajax --- views/default/input/multiselect.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/views/default/input/multiselect.php b/views/default/input/multiselect.php index db76107..73ab14b 100644 --- a/views/default/input/multiselect.php +++ b/views/default/input/multiselect.php @@ -10,7 +10,11 @@ * @link http://www.coldtrick.com/ */ -elgg_require_css('input/multiselect'); +if (elgg_is_xhr()) { + echo elgg_format_element('link', ['rel' => 'stylesheet', 'href' => elgg_get_simplecache_url('input/multiselect.css')]); +} else { + elgg_require_css('input/multiselect'); +} $vars['class'] = (array) elgg_extract('class', $vars, []); $vars['class'][] = 'profile-manager-multiselect';