filters intersection works even to re enable a categori selected

This commit is contained in:
lenovo
2022-11-17 13:00:47 +01:00
parent 410fbe699d
commit 2aac5ec25d
2 changed files with 37 additions and 25 deletions

View File

@@ -12,6 +12,11 @@ function mp_filter_drop_down($key, &$filter) {
onchange="filter_event(this, this.options[this.selectedIndex], \''.$key.'\')"
*/
$menu_name_class = 'filter_menu_'.str_replace(" ", "_", $key).'';
$id = "filter_"
. $key
. "_"
. $key
;
$content = '
<select
form="ljdp_form"
@@ -20,6 +25,7 @@ function mp_filter_drop_down($key, &$filter) {
>
<option
selected
id="'.$id.'"
class="filter_menu_item '.$menu_name_class.'"
data-menu_index="menu_name"
>