Merge pull request #352 from Megala21/master

EMM-1626 : Unable to retrieve device location for an enrolled android device
This commit is contained in:
Harshan Liyanage 2016-09-27 17:59:01 +05:30 committed by GitHub
commit f8bc1ff3bf
3 changed files with 5 additions and 1 deletions

View File

@ -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();
}

View File

@ -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"];