Skip to content

Commit

Permalink
fixed: make sure multiselect is also loaded if requested via ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Oct 10, 2023
1 parent 4a193d7 commit 32e22ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion views/default/input/multiselect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 32e22ab

Please sign in to comment.