Fixing EMM-1626

This commit is contained in:
Megala 2016-09-27 13:33:12 +05:30
parent 0cdde82c1b
commit 135019f987
2 changed files with 5 additions and 1 deletions

View File

@ -45,7 +45,7 @@ $(document).ready(function () {
var url = $(this).prop("href"); var url = $(this).prop("href");
var hash = url.substring(url.indexOf("#") + 1); var hash = url.substring(url.indexOf("#") + 1);
if (hash == "device_location") { if (hash == "device_location_tab") {
if (!map) { if (!map) {
loadLeafletMap(); loadLeafletMap();
} }

View File

@ -77,6 +77,10 @@ function onRequest(context) {
deviceInfo = info; deviceInfo = info;
if (device["deviceInfo"]) { if (device["deviceInfo"]) {
viewModel["location"] = {
latitude: device["deviceInfo"]["location"]["latitude"],
longitude: device["deviceInfo"]["location"]["longitude"]
};
viewModel["deviceInfo"] = true; viewModel["deviceInfo"] = true;
viewModel["model"] = device["deviceInfo"]["deviceModel"]; viewModel["model"] = device["deviceInfo"]["deviceModel"];