|
|
@ -35,6 +35,10 @@ var operations = '.wr-operations',
|
|
|
|
ownershipTypeConstants = {
|
|
|
|
ownershipTypeConstants = {
|
|
|
|
"BYOD": "BYOD",
|
|
|
|
"BYOD": "BYOD",
|
|
|
|
"COPE": "COPE"
|
|
|
|
"COPE": "COPE"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
operationBarModeConstants = {
|
|
|
|
|
|
|
|
"BULK": "BULK_OPERATION_MODE",
|
|
|
|
|
|
|
|
"SINGLE": "SINGLE_OPERATION_MODE"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -103,7 +107,7 @@ function getDevicesByTypes(deviceList) {
|
|
|
|
// $(".wr-operations").html("");
|
|
|
|
// $(".wr-operations").html("");
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
function loadOperationBar(deviceType, ownership) {
|
|
|
|
function loadOperationBar(deviceType, ownership, mode) {
|
|
|
|
var operationBar = $("#operations-bar");
|
|
|
|
var operationBar = $("#operations-bar");
|
|
|
|
var operationBarSrc = operationBar.attr("src");
|
|
|
|
var operationBarSrc = operationBar.attr("src");
|
|
|
|
|
|
|
|
|
|
|
@ -121,11 +125,22 @@ function loadOperationBar(deviceType, ownership) {
|
|
|
|
var j;
|
|
|
|
var j;
|
|
|
|
for (j = 0; j < totalFeatures.length; j++) {
|
|
|
|
for (j = 0; j < totalFeatures.length; j++) {
|
|
|
|
if (permissionList[deviceType][i] == totalFeatures[j]["code"]) {
|
|
|
|
if (permissionList[deviceType][i] == totalFeatures[j]["code"]) {
|
|
|
|
if (deviceType == platformTypeConstants.ANDROID &&
|
|
|
|
if (deviceType == platformTypeConstants.ANDROID) {
|
|
|
|
totalFeatures[j]["code"] == "DEVICE_UNLOCK") {
|
|
|
|
if (totalFeatures[j]["code"] == "DEVICE_UNLOCK") {
|
|
|
|
if (ownership == ownershipTypeConstants.COPE) {
|
|
|
|
if (ownership == ownershipTypeConstants.COPE) {
|
|
|
|
permittedOperations.push(totalFeatures[j]);
|
|
|
|
permittedOperations.push(totalFeatures[j]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if (totalFeatures[j]["code"] == "WIPE_DATA") {
|
|
|
|
|
|
|
|
if (mode == operationBarModeConstants.BULK) {
|
|
|
|
|
|
|
|
if (ownership == ownershipTypeConstants.COPE) {
|
|
|
|
|
|
|
|
permittedOperations.push(totalFeatures[j]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
permittedOperations.push(totalFeatures[j]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
permittedOperations.push(totalFeatures[j]);
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
permittedOperations.push(totalFeatures[j]);
|
|
|
|
permittedOperations.push(totalFeatures[j]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|