From a097482b9179b711372c9b75525a476d492ca1f9 Mon Sep 17 00:00:00 2001 From: Dunith Dhanushka Date: Fri, 13 Jan 2017 20:26:13 +0530 Subject: [PATCH] Passing deviceId and deviceType into view --- .../cdmf.unit.device.type.android.device-view/device-view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.device-view/device-view.js b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.device-view/device-view.js index ee77264770..c192718e88 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.device-view/device-view.js +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.device-view/device-view.js @@ -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; }