filters intersection almost works, except remove checkbox action
This commit is contained in:
@@ -11,6 +11,7 @@ function mp_filter_drop_down($key, &$filter) {
|
||||
onchange="filter_show_only_selection(this, '.json_encode(array()).', '."'".$key."'".')"
|
||||
onchange="filter_event(this, this.options[this.selectedIndex], \''.$key.'\')"
|
||||
*/
|
||||
$menu_name_class = 'filter_menu_'.str_replace(" ", "_", $key).'';
|
||||
$content = '
|
||||
<select
|
||||
form="ljdp_form"
|
||||
@@ -19,7 +20,7 @@ function mp_filter_drop_down($key, &$filter) {
|
||||
>
|
||||
<option
|
||||
selected
|
||||
class="filter_menu_item"
|
||||
class="filter_menu_item '.$menu_name_class.'"
|
||||
data-menu_index="menu_name"
|
||||
>
|
||||
'.$key.'
|
||||
@@ -34,7 +35,7 @@ function mp_filter_drop_down($key, &$filter) {
|
||||
$content .= '
|
||||
<option
|
||||
id="'.$id.'"
|
||||
class="filter_menu_item"
|
||||
class="filter_menu_item '.$menu_name_class.'"
|
||||
data-menu_index="'.$key_filter.'"
|
||||
>
|
||||
'.$value->_name.'
|
||||
@@ -53,6 +54,7 @@ function mp_filter_buttons($key, &$filter) {
|
||||
/*
|
||||
onclick="filter_show_only_selection(this, '.json_encode($value->indexes).', '."'".$key."'".', true)"
|
||||
*/
|
||||
$menu_name_class = 'filter_menu_'.str_replace(" ", "_", $key).'';
|
||||
$content = '';
|
||||
foreach ($filter as $key_filter => $value) {
|
||||
$id = "filter_"
|
||||
@@ -65,7 +67,7 @@ function mp_filter_buttons($key, &$filter) {
|
||||
type="checkbox"
|
||||
form="ljdp_form"
|
||||
id="'.$id.'"
|
||||
class="filter_menu_checkbox filter_menu_item"
|
||||
class="filter_menu_checkbox filter_menu_item '.$menu_name_class.'"
|
||||
onclick="filter_show_only(this, \''.$key.'\')"
|
||||
style="display:none;"
|
||||
data-menu_index="'.$key_filter.'",
|
||||
|
||||
Reference in New Issue
Block a user