pass indexes array to js function
This commit is contained in:
@@ -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 .= '
|
||||
|
||||
Reference in New Issue
Block a user