Merge pull request #521 from dunithd/release-3.0.x

Replacing the value of GLOBAL-STATE param with comma separated deviceId,deviceType
This commit is contained in:
Rasika Perera 2017-01-13 22:42:53 +05:30 committed by GitHub
commit a3e97b4356
2 changed files with 4 additions and 4 deletions

View File

@ -339,7 +339,7 @@
</div>
<br/>
<a class="padding-left"
href="{{portalUrl}}/portal/dashboards/geo-dashboard/?GLOBAL-STATE={{anchor}}">
href="{{portalUrl}}/portal/dashboards/geo-dashboard/?GLOBAL-STATE={{deviceId}},{{deviceType}}">
<span class="fw-stack">
<i class="fw fw-circle-outline fw-stack-2x"></i>
<i class="fw fw-map-location fw-stack-1x"></i>
@ -439,4 +439,4 @@
{{js "js/device-detail.js"}}
{{js "js/load-map.js"}}
{{/if}}
{{/zone}}
{{/zone}}

View File

@ -213,7 +213,7 @@ function onRequest(context) {
deviceViewData["autoCompleteParams"] = autoCompleteParams;
deviceViewData["portalUrl"] = devicemgtProps['portalURL'];
var anchor = { "device" : { "id" : deviceId, "type" : deviceType}};
deviceViewData["anchor"] = JSON.stringify(anchor);
deviceViewData["deviceId"] = deviceId;
deviceViewData["deviceType"] = deviceType;
return deviceViewData;
}