diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/android-web-agent/app/pages/mdm.page.enrollments.android.download-agent/public/asset/android-agent.apk b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/android-web-agent/app/pages/mdm.page.enrollments.android.download-agent/public/asset/android-agent.apk index de63c0634..e21252790 100644 Binary files a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/android-web-agent/app/pages/mdm.page.enrollments.android.download-agent/public/asset/android-agent.apk and b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/android-web-agent/app/pages/mdm.page.enrollments.android.download-agent/public/asset/android-agent.apk differ 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.hbs 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.hbs index 0577d7482..189bcf087 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.hbs +++ 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.hbs @@ -1,5 +1,4 @@ {{unit "cdmf.unit.device.type.android.leaflet"}} -{{unit "cdmf.unit.lib.editable"}} {{unit "cdmf.unit.lib.qrcode"}} {{unit "cdmf.unit.device.type.qr-modal"}} @@ -52,41 +51,16 @@
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"); @@ -55,12 +86,12 @@ var InitiateViewOption = null; }); - $('.media.tab-responsive a[data-toggle="collapse"]').on('click',function(){ + $('.media.tab-responsive a[data-toggle="collapse"]').on('click', function () { var clickedPanel = $(this).attr('href'); - if($(clickedPanel).hasClass('in')){ + if ($(clickedPanel).hasClass('in')) { $(clickedPanel).collapse('hide'); - }else{ + } else { $(clickedPanel).collapse('show'); } }); @@ -130,26 +161,26 @@ var InitiateViewOption = null; var parentHeight = $(arrow).parent().innerHeight(); - if($(selectedTab).prev().length){ - $(selectedTab).prevAll().each(function() { + if ($(selectedTab).prev().length) { + $(selectedTab).prevAll().each(function () { totalHeight += $(this).innerHeight(); }); arrowPosition = totalHeight + (selectedTabHeight / 2); - }else{ + } else { arrowPosition = selectedTabHeight / 2; } - if(arrowPosition >= parentHeight){ + if (arrowPosition >= parentHeight) { parentHeight = arrowPosition + 50; $(arrow).siblings(".panel.active").height(parentHeight); - }else{ + } else { $(arrow).parent().removeAttr("style"); } $(arrow).css("top", arrowPosition - 10); } - $(document).ready(function() { + $(document).ready(function () { $(".device-detail-body").removeClass("hidden"); $("#loading-content").remove(); loadApplicationsList(); @@ -165,7 +196,7 @@ var InitiateViewOption = null; loadApplicationsList(); }); }); - + function loadOperationsLog(update) { var owner = $("#device-owner").data("owner"); var operationsLogTable = "#operations-log-table"; @@ -178,12 +209,12 @@ var InitiateViewOption = null; serverSide: true, processing: false, searching: false, - ordering: false, - pageLength : 10, + ordering: false, + pageLength: 10, order: [], ajax: { url: "/devicemgt/api/operation/paginate", - data: {deviceId : deviceIdentifier, deviceType: deviceType, owner:owner}, + data: {deviceId: deviceIdentifier, deviceType: deviceType, owner: owner}, dataSrc: function (json) { $("#operations-spinner").addClass("hidden"); $("#operations-log-container").empty(); @@ -191,43 +222,43 @@ var InitiateViewOption = null; } }, columnDefs: [ - {targets: 0, data: "code" }, - {targets: 1, data: "status", render: - function (status) { - var html; - switch (status) { - case "COMPLETED" : - html = " Completed"; - break; - case "PENDING" : - html = " Pending"; - break; - case "ERROR" : - html = " Error"; - break; - case "IN_PROGRESS" : - html = " In Progress"; - break; - case "REPEATED" : - html = " Repeated"; - break; - } - return html; + {targets: 0, data: "code"}, + { + targets: 1, data: "status", render: function (status) { + var html; + switch (status) { + case "COMPLETED" : + html = " Completed"; + break; + case "PENDING" : + html = " Pending"; + break; + case "ERROR" : + html = " Error"; + break; + case "IN_PROGRESS" : + html = " In Progress"; + break; + case "REPEATED" : + html = " Repeated"; + break; } + return html; + } }, - {targets: 2, data: "createdTimeStamp", render: - function (date) { - var value = String(date); - return value.slice(0, 16); - } + { + targets: 2, data: "createdTimeStamp", render: function (date) { + var value = String(date); + return value.slice(0, 16); + } } ], - "createdRow": function(row, data) { + "createdRow": function (row, data) { $(row).attr("data-type", "selectable"); $(row).attr("data-id", data["id"]); $.each($("td", row), - function(colIndex) { - switch(colIndex) { + function (colIndex) { + switch (colIndex) { case 1: $(this).attr("data-grid-label", "Code"); $(this).attr("data-display", data["code"]); @@ -276,18 +307,16 @@ var InitiateViewOption = null; var content = template(viewModel); $("#applications-list-container").html(content); } else { - $("#applications-list-container"). - html("
"); + $("#applications-list-container").html(" "); } } }, // error-callback function () { - $("#applications-list-container"). - html("Loading application list " + - "was not successful. please try refreshing the list in a while.
Loading application list " + + "was not successful. please try refreshing the list in a while.
This device " + - "has no policy applied.
This device " + + "has no policy applied.
Loading policy compliance related data " + - "was not successful. please try refreshing data in a while.
Loading policy compliance related data " + + "was not successful. please try refreshing data in a while.
Loading policy compliance related data " + - "was not successful. please try refreshing data in a while.
Loading policy compliance related data " + + "was not successful. please try refreshing data in a while.
For further instructions and troubleshooting please visit the following link.
--> - {{#if isCloud}} -Need help? Read WSO2 Device Cloud documentation. -
- {{else}} -Need help? Read WSO2 - IoT Server documentation.
- {{/if}} + {{#if isCloud}} +Need help? Read WSO2 Device Cloud documentation. +
+ {{else}} +Need help? Read WSO2 + IoT Server documentation.
+ {{/if}}Let's start by opening the Android agent on your device.
-
Tap on WSO2 Device Management Agent.
-
Let's start by opening the Android agent on your device.
+
Tap on WSO2 Device Management Agent.
+
Enter your: +
Enter your :
To successfully register the virtual device,
@@ -149,9 +151,13 @@