|
|
@ -51,7 +51,10 @@
|
|
|
|
var operationsLogTable = "#operations-log-table";
|
|
|
|
var operationsLogTable = "#operations-log-table";
|
|
|
|
if (update) {
|
|
|
|
if (update) {
|
|
|
|
operationTable = $(operationsLogTable).DataTable();
|
|
|
|
operationTable = $(operationsLogTable).DataTable();
|
|
|
|
operationTable.ajax.reload(false);
|
|
|
|
$("#operations-spinner").removeClass("hidden");
|
|
|
|
|
|
|
|
operationTable.ajax.reload(function ( json ) {
|
|
|
|
|
|
|
|
$("#operations-spinner").addClass("hidden");
|
|
|
|
|
|
|
|
}, false);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
operationTable = $(operationsLogTable).datatables_extended({
|
|
|
|
operationTable = $(operationsLogTable).datatables_extended({
|
|
|
@ -142,14 +145,14 @@
|
|
|
|
function (template) {
|
|
|
|
function (template) {
|
|
|
|
var getEffectivePolicyURL = "/api/device-mgt/v1.0/devices/" + deviceType + "/" + deviceId + "/effective-policy";
|
|
|
|
var getEffectivePolicyURL = "/api/device-mgt/v1.0/devices/" + deviceType + "/" + deviceId + "/effective-policy";
|
|
|
|
var getDeviceComplianceURL = "/api/device-mgt/v1.0/devices/" + deviceType + "/" + deviceId + "/compliance-data";
|
|
|
|
var getDeviceComplianceURL = "/api/device-mgt/v1.0/devices/" + deviceType + "/" + deviceId + "/compliance-data";
|
|
|
|
|
|
|
|
|
|
|
|
invokerUtil.get(
|
|
|
|
invokerUtil.get(
|
|
|
|
getEffectivePolicyURL,
|
|
|
|
getEffectivePolicyURL,
|
|
|
|
// success-callback
|
|
|
|
// success-callback
|
|
|
|
function (data, textStatus, jqXHR) {
|
|
|
|
function (data, textStatus, jqXHR) {
|
|
|
|
if (jqXHR.status == 200 && data) {
|
|
|
|
if (jqXHR.status == 200) {
|
|
|
|
data = JSON.parse(data);
|
|
|
|
|
|
|
|
$("#policy-spinner").addClass("hidden");
|
|
|
|
$("#policy-spinner").addClass("hidden");
|
|
|
|
|
|
|
|
if(data){
|
|
|
|
|
|
|
|
data = JSON.parse(data);
|
|
|
|
if (data["active"] == true) {
|
|
|
|
if (data["active"] == true) {
|
|
|
|
activePolicy = data;
|
|
|
|
activePolicy = data;
|
|
|
|
invokerUtil.get(
|
|
|
|
invokerUtil.get(
|
|
|
@ -191,6 +194,7 @@
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// error-callback
|
|
|
|
// error-callback
|
|
|
|
function () {
|
|
|
|
function () {
|
|
|
|