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"); - $(activeTabPane).removeClass("visible-xs-block"); $(activeTabPane).siblings().not(".arrow-left").addClass("visible-xs-block"); positionArrow(activeListGroupItem); @@ -62,25 +35,21 @@ var InitiateViewOption = null; $(".media.tab-responsive .tab-content").on("shown.bs.collapse", function (e) { var thisParent = $(e.target).parent(); - var activeTabPaneCaret = thisParent.find('.caret-updown'); - var activeTabPaneCaretSiblings = thisParent.siblings().find('.caret-updown'); - + var activeTabPaneCaret = thisParent.find(".caret-updown"); + var activeTabPaneCaretSiblings = thisParent.siblings().find(".caret-updown"); activeTabPaneCaret.removeClass("fw-up").addClass("fw-down"); activeTabPaneCaretSiblings.removeClass("fw-down").addClass("fw-up"); }); - - $('.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'); } }); - function positionArrow(selectedTab) { var selectedTabHeight = $(selectedTab).innerHeight(); var arrowPosition = 0; @@ -108,30 +77,6 @@ var InitiateViewOption = null; $(arrow).css("top", arrowPosition - 10); } - $(document).ready(function() { - $(".device-detail-body").removeClass("hidden"); - $("#loading-content").remove(); - loadOperationBar(deviceType); - loadOperationsLog(false); - loadApplicationsList(); - loadPolicyCompliance(); - - $("#refresh-policy").click(function () { - $("#policy-spinner").removeClass("hidden"); - loadPolicyCompliance(); - }); - - $("#refresh-apps").click(function () { - $("#apps-spinner").removeClass("hidden"); - loadApplicationsList(); - }); - - $("#refresh-operations").click(function () { - $("#operations-spinner").removeClass("hidden"); - loadOperationsLog(true); - }); - }); - function loadOperationsLog(update) { var operationsLogTable = "#operations-log-table"; if (update) { @@ -273,8 +218,8 @@ var InitiateViewOption = null; // success-callback function (data, textStatus, jqXHR) { if (jqXHR.status == 200 && data) { - data = JSON.parse(data); $("#policy-spinner").addClass("hidden"); + data = JSON.parse(data); if (data["active"] == true) { activePolicy = data; invokerUtil.get( @@ -290,42 +235,94 @@ var InitiateViewOption = null; if (data["complianceData"]) { if (data["complianceData"]["complianceFeatures"] && data["complianceData"]["complianceFeatures"].length > 0) { - viewModel["compliance"] = "NON-COMPLIANT"; + viewModel["complianceStatus"] = "NON-COMPLIANT"; viewModel["complianceFeatures"] = data["complianceData"]["complianceFeatures"]; content = template(viewModel); $("#policy-list-container").html(content); } else { - viewModel["compliance"] = "COMPLIANT"; + viewModel["complianceStatus"] = "COMPLIANT"; content = template(viewModel); $("#policy-list-container").html(content); $("#policy-compliance-table").addClass("hidden"); } - } else { - $("#policy-list-container"). - html("
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.
{{featureCode}} | -- {{#equal compliance true}} Compliant{{/equal}} - {{#equal compliance false}} Not Compliant{{/equal}} + | + {{#equal complianceStatus true}} Compliant{{/equal}} + {{#equal complianceStatus false}} Not Compliant{{/equal}} |
Device | -{{device.viewModel.vendor}} {{device.properties.model}} | -||
Model | -{{device.viewModel.model}} | +Device ID | +{{deviceView.deviceIdentifier}} |
IMEI | -{{device.viewModel.imei}} | -||
UDID | -{{device.viewModel.udid}} | +Name | +{{deviceView.name}} |
Model | +{{deviceView.vendor}} {{deviceView.model}} | +||
Firmware Build Date | -{{device.viewModel.os_build_date}} | +Status | ++ {{#equal deviceView.status "ACTIVE"}} Active{{/equal}} + {{#equal deviceView.status "INACTIVE"}} Inactive{{/equal}} + {{#equal deviceView.status "BLOCKED"}} Blocked{{/equal}} + {{#equal deviceView.status "REMOVED"}} Removed{{/equal}} + | +
Owner | +{{deviceView.owner}} | +||
Ownership | +{{deviceView.ownership}} | +||
IMEI | +{{deviceView.imei}} | +||
UDID | +{{deviceView.udid}} | ||
Phone Number | -{{device.viewModel.phoneNumber}} | +Firmware Build Date | +{{deviceView.osBuildDate}} | +
Phone Number | +{{deviceView.phoneNumber}} | +||
Last Update | +{{deviceView.lastUpdatedTime}} | ||
Status | -- {{#equal device.status "ACTIVE"}} Active{{/equal}} - {{#equal device.status "INACTIVE"}} Inactive{{/equal}} - {{#equal device.status "BLOCKED"}} Blocked{{/equal}} - {{#equal device.status "REMOVED"}} Removed{{/equal}} - | -
Operation Code | +Status | +Request created at | +
---|