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/public/js/device-detail.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/public/js/device-detail.js
index 498aa73d2d..58be0a061e 100755
--- 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/public/js/device-detail.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/public/js/device-detail.js
@@ -36,41 +36,6 @@ var InitiateViewOption = null;
serviceUrlLocal = "/api/device-mgt/android/v1.0/admin/devices/location";
}
- if (serviceUrl) {
- invokerUtil.post(
- serviceUrl,
- payload,
- // success-callback
- function () {
- $(".panel-body").show();
- },
- // error-callback
- function () {
- var defaultInnerHTML =
- "
Device data may not have been updated. Please refresh to try again.
";
- $(".panel-body").append(defaultInnerHTML);
- }
- );
-
-
- invokerUtil.post(
- serviceUrlLocal,
- payload,
- // success-callback
- function () {
- $(".panel-body").show();
- },
- // error-callback
- function () {
- var defaultInnerHTML =
- "
Device data may not have been updated. Please refresh to try again.
"; - $(".panel-body").append(defaultInnerHTML); - } - ); - - } - - $(".media.tab-responsive [data-toggle=tab]").on("shown.bs.tab", function (e) { var activeTabPane = $(e.target).attr("href"); var activeListGroupItem = $(".media .list-group-item.active");