mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge pull request #352 from Megala21/master
EMM-1626 : Unable to retrieve device location for an enrolled android device
This commit is contained in:
commit
f8bc1ff3bf
@ -45,7 +45,7 @@ $(document).ready(function () {
|
||||
var url = $(this).prop("href");
|
||||
var hash = url.substring(url.indexOf("#") + 1);
|
||||
|
||||
if (hash == "device_location") {
|
||||
if (hash == "device_location_tab") {
|
||||
if (!map) {
|
||||
loadLeafletMap();
|
||||
}
|
||||
|
||||
@ -77,6 +77,10 @@ function onRequest(context) {
|
||||
deviceInfo = info;
|
||||
|
||||
if (device["deviceInfo"]) {
|
||||
viewModel["location"] = {
|
||||
latitude: device["deviceInfo"]["location"]["latitude"],
|
||||
longitude: device["deviceInfo"]["location"]["longitude"]
|
||||
};
|
||||
viewModel["deviceInfo"] = true;
|
||||
|
||||
viewModel["model"] = device["deviceInfo"]["deviceModel"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user