|
|
@ -535,16 +535,13 @@ validateStep["policy-profile"] = function () {
|
|
|
|
|
|
|
|
|
|
|
|
// Updating validationStatusArray with validationStatus
|
|
|
|
// Updating validationStatusArray with validationStatus
|
|
|
|
validationStatusArray.push(validationStatus);
|
|
|
|
validationStatusArray.push(validationStatus);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($.inArray(androidOperationConstants["KIOSK_APPS_CODE"], configuredOperations) != -1) {
|
|
|
|
if ($.inArray(androidOperationConstants["KIOSK_APPS_CODE"], configuredOperations) != -1) {
|
|
|
|
//If COSU whitelisting applications configured
|
|
|
|
//If COSU whitelisting applications configured
|
|
|
|
operation = androidOperationConstants["KIOSK_APPS"];
|
|
|
|
operation = androidOperationConstants["KIOSK_APPS"];
|
|
|
|
// Initializing continueToCheckNextInputs to true
|
|
|
|
// Initializing continueToCheckNextInputs to true
|
|
|
|
continueToCheckNextInputs = true;
|
|
|
|
continueToCheckNextInputs = true;
|
|
|
|
|
|
|
|
|
|
|
|
var whitelistedApplicationsGridChildInputs = "div#cosu-whitelisted-applications .child-input";
|
|
|
|
var whitelistedApplicationsGridChildInputs = "div#cosu-whitelisted-applications .child-input";
|
|
|
|
|
|
|
|
|
|
|
|
if (continueToCheckNextInputs) {
|
|
|
|
if (continueToCheckNextInputs) {
|
|
|
|
if ($(whitelistedApplicationsGridChildInputs).length == 0) {
|
|
|
|
if ($(whitelistedApplicationsGridChildInputs).length == 0) {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
@ -609,20 +606,16 @@ validateStep["policy-profile"] = function () {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (continueToCheckNextInputs) {
|
|
|
|
if (continueToCheckNextInputs) {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": false,
|
|
|
|
"error": false,
|
|
|
|
"okFeature": operation
|
|
|
|
"okFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Updating validationStatusArray with validationStatus
|
|
|
|
// Updating validationStatusArray with validationStatus
|
|
|
|
validationStatusArray.push(validationStatus);
|
|
|
|
validationStatusArray.push(validationStatus);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2550,14 +2543,12 @@ var slideDownPaneAgainstValueSet = function (selectElement, paneID, valueSet) {
|
|
|
|
|
|
|
|
|
|
|
|
var slideDownPaneAgainstValueSetForRadioButtons = function (selectElement, paneID, valueSet) {
|
|
|
|
var slideDownPaneAgainstValueSetForRadioButtons = function (selectElement, paneID, valueSet) {
|
|
|
|
var selectedValueOnChange = selectElement.value;
|
|
|
|
var selectedValueOnChange = selectElement.value;
|
|
|
|
|
|
|
|
|
|
|
|
var i, slideDownVotes = 0;
|
|
|
|
var i, slideDownVotes = 0;
|
|
|
|
for (i = 0; i < valueSet.length; i++) {
|
|
|
|
for (i = 0; i < valueSet.length; i++) {
|
|
|
|
if (selectedValueOnChange == valueSet[i]) {
|
|
|
|
if (selectedValueOnChange == valueSet[i]) {
|
|
|
|
slideDownVotes++;
|
|
|
|
slideDownVotes++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var paneSelector = "#" + paneID;
|
|
|
|
var paneSelector = "#" + paneID;
|
|
|
|
if(slideDownVotes > 0) {
|
|
|
|
if(slideDownVotes > 0) {
|
|
|
|
$(paneSelector).removeClass("hidden");
|
|
|
|
$(paneSelector).removeClass("hidden");
|
|
|
@ -2799,6 +2790,26 @@ $(document).ready(function () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// <start - fixing feature-configuring switch double-click issue>
|
|
|
|
|
|
|
|
$(advanceOperations).on('hidden.bs.collapse', function (event) {
|
|
|
|
|
|
|
|
var collapsedFeatureBody = event.target.id;
|
|
|
|
|
|
|
|
var featureConfiguringSwitch = "#" + collapsedFeatureBody.
|
|
|
|
|
|
|
|
substr(0, collapsedFeatureBody.lastIndexOf("-")) + "-heading input[type=checkbox]";
|
|
|
|
|
|
|
|
if ($(featureConfiguringSwitch).prop("checked") == true) {
|
|
|
|
|
|
|
|
$(featureConfiguringSwitch).prop("checked", false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(advanceOperations).on('shown.bs.collapse', function (event) {
|
|
|
|
|
|
|
|
var expandedFeatureBody = event.target.id;
|
|
|
|
|
|
|
|
var featureConfiguringSwitch = "#" + expandedFeatureBody.
|
|
|
|
|
|
|
|
substr(0, expandedFeatureBody.lastIndexOf("-")) + "-heading input[type=checkbox]";
|
|
|
|
|
|
|
|
if ($(featureConfiguringSwitch).prop("checked") == false) {
|
|
|
|
|
|
|
|
$(featureConfiguringSwitch).prop("checked", true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
// <end - fixing feature-configuring switch double-click issue>
|
|
|
|
|
|
|
|
|
|
|
|
// adding support for cloning multiple profiles per feature with cloneable class definitions
|
|
|
|
// adding support for cloning multiple profiles per feature with cloneable class definitions
|
|
|
|
$(advanceOperations).on("click", ".multi-view.add.enabled", function () {
|
|
|
|
$(advanceOperations).on("click", ".multi-view.add.enabled", function () {
|
|
|
|
// get a copy of .cloneable and create new .cloned div element
|
|
|
|
// get a copy of .cloneable and create new .cloned div element
|
|
|
|