Fix centering issue for hub map when dispatching a job order. #270
This commit is contained in:
parent
2d023b5e69
commit
a21d0509fd
2 changed files with 2 additions and 2 deletions
|
|
@ -1486,7 +1486,7 @@ $(function() {
|
||||||
selectedHub = id;
|
selectedHub = id;
|
||||||
|
|
||||||
// center the map
|
// center the map
|
||||||
hmap.setCenter(lat, lng);
|
osm_hmap.flyTo(L.latLng(lat, lng));
|
||||||
} else {
|
} else {
|
||||||
// unhighlight this row
|
// unhighlight this row
|
||||||
$(this).removeClass('m-table__row--primary');
|
$(this).removeClass('m-table__row--primary');
|
||||||
|
|
|
||||||
|
|
@ -1478,7 +1478,7 @@ $(function() {
|
||||||
selectedHub = id;
|
selectedHub = id;
|
||||||
|
|
||||||
// center the map
|
// center the map
|
||||||
hmap.setCenter(lat, lng);
|
osm_hmap.flyTo(L.latLng(lat, lng));
|
||||||
} else {
|
} else {
|
||||||
// unhighlight this row
|
// unhighlight this row
|
||||||
$(this).removeClass('m-table__row--primary');
|
$(this).removeClass('m-table__row--primary');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue