pass indexes array to js function

This commit is contained in:
lenovo
2022-11-11 18:36:04 +01:00
parent e255a36b29
commit 65df3e630d
4 changed files with 14 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ function mp_create_div(&$filters) {
';
foreach ($filter as $value) {
$mp_map_div .= '
<p onclick="mp_filter_selection({lat:43.563, lng:76.4325})">'.$value->_name.'</p>
<p onclick="mp_filter_selection('.json_encode($value->indexes).')">'.$value->_name.'</p>
';
}
$mp_map_div .= '