|
|
@ -23,7 +23,7 @@ var stepBackFrom = {};
|
|
|
|
var policy = {};
|
|
|
|
var policy = {};
|
|
|
|
var configuredOperations = [];
|
|
|
|
var configuredOperations = [];
|
|
|
|
|
|
|
|
|
|
|
|
var baseApiUrl = "/api/device-mgt/v1.0";
|
|
|
|
var base_api_url = "/api/device-mgt/v1.0";
|
|
|
|
|
|
|
|
|
|
|
|
// Constants to define platform types available
|
|
|
|
// Constants to define platform types available
|
|
|
|
var platformTypeConstants = {
|
|
|
|
var platformTypeConstants = {
|
|
|
@ -119,7 +119,6 @@ skipStep["policy-platform"] = function (policyPayloadObj) {
|
|
|
|
policyDescriptionInput.val(policyPayloadObj["description"]);
|
|
|
|
policyDescriptionInput.val(policyPayloadObj["description"]);
|
|
|
|
// updating next-page wizard title with selected platform
|
|
|
|
// updating next-page wizard title with selected platform
|
|
|
|
$("#policy-heading").text(policy["platform"].toUpperCase() + " POLICY - " + policy["name"].toUpperCase());
|
|
|
|
$("#policy-heading").text(policy["platform"].toUpperCase() + " POLICY - " + policy["name"].toUpperCase());
|
|
|
|
// $("#policy-heading").text("Android" + " POLICY - " + "Merged Policy");
|
|
|
|
|
|
|
|
$("#policy-platform").text(policy["platform"].toUpperCase());
|
|
|
|
$("#policy-platform").text(policy["platform"].toUpperCase());
|
|
|
|
$("#policy-assignment").text(policyPayloadObj.ownershipType);
|
|
|
|
$("#policy-assignment").text(policyPayloadObj.ownershipType);
|
|
|
|
$("#policy-action").text(policyPayloadObj.compliance.toUpperCase());
|
|
|
|
$("#policy-action").text(policyPayloadObj.compliance.toUpperCase());
|
|
|
@ -149,9 +148,9 @@ skipStep["policy-platform"] = function (policyPayloadObj) {
|
|
|
|
// $("#roles-row").addClass("hidden");
|
|
|
|
// $("#roles-row").addClass("hidden");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
var deviceType = "android";
|
|
|
|
var deviceType = policy["platform"];
|
|
|
|
var hiddenOperationsByDeviceType = $("#hidden-operations-" + "android");
|
|
|
|
var hiddenOperationsByDeviceType = $("#hidden-operations-" + deviceType);
|
|
|
|
var hiddenOperationsByDeviceTypeCacheKey = "android" + "HiddenOperations";
|
|
|
|
var hiddenOperationsByDeviceTypeCacheKey = deviceType + "HiddenOperations";
|
|
|
|
var hiddenOperationsByDeviceTypeSrc = hiddenOperationsByDeviceType.attr("src");
|
|
|
|
var hiddenOperationsByDeviceTypeSrc = hiddenOperationsByDeviceType.attr("src");
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(
|
|
|
|
setTimeout(
|
|
|
@ -162,7 +161,7 @@ skipStep["policy-platform"] = function (policyPayloadObj) {
|
|
|
|
$(".wr-advance-operations").html(content);
|
|
|
|
$(".wr-advance-operations").html(content);
|
|
|
|
// populating values and getting the list of configured features
|
|
|
|
// populating values and getting the list of configured features
|
|
|
|
var configuredOperations = operationModule.
|
|
|
|
var configuredOperations = operationModule.
|
|
|
|
populateProfile(policy["platform"], policyPayloadObj["profile"]["profileFeaturesList"]);
|
|
|
|
populateProfile(policy["platform"], policyPayloadObj["profile"]["profileFeaturesList"]);
|
|
|
|
// updating grouped input visibility according to the populated values
|
|
|
|
// updating grouped input visibility according to the populated values
|
|
|
|
$(".wr-advance-operations li.grouped-input").each(function () {
|
|
|
|
$(".wr-advance-operations li.grouped-input").each(function () {
|
|
|
|
updateGroupedInputVisibility(this);
|
|
|
|
updateGroupedInputVisibility(this);
|
|
|
@ -171,9 +170,9 @@ skipStep["policy-platform"] = function (policyPayloadObj) {
|
|
|
|
for (var i = 0; i < configuredOperations.length; ++i) {
|
|
|
|
for (var i = 0; i < configuredOperations.length; ++i) {
|
|
|
|
var configuredOperation = configuredOperations[i];
|
|
|
|
var configuredOperation = configuredOperations[i];
|
|
|
|
$(".operation-data").filterByData("operation-code", configuredOperation).
|
|
|
|
$(".operation-data").filterByData("operation-code", configuredOperation).
|
|
|
|
find(".panel-title .wr-input-control.switch input[type=checkbox]").each(function () {
|
|
|
|
find(".panel-title .wr-input-control.switch input[type=checkbox]").each(function () {
|
|
|
|
$(this).click();
|
|
|
|
$(this).click();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -555,7 +554,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "One or more permitted App ID entries in " +
|
|
|
|
"subErrorMsg": "One or more permitted App ID entries in " +
|
|
|
|
"Autonomous Single App Mode are empty.",
|
|
|
|
"Autonomous Single App Mode are empty.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -563,7 +562,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Duplicate values exist with permitted App ID entries in " +
|
|
|
|
"subErrorMsg": "Duplicate values exist with permitted App ID entries in " +
|
|
|
|
"Autonomous Single App Mode.",
|
|
|
|
"Autonomous Single App Mode.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -636,7 +635,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Wi-Fi Proxy Port is not within the range " +
|
|
|
|
"subErrorMsg": "Wi-Fi Proxy Port is not within the range " +
|
|
|
|
"of valid port numbers.",
|
|
|
|
"of valid port numbers.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -686,7 +685,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "One or more Payload Certificate " +
|
|
|
|
"subErrorMsg": "One or more Payload Certificate " +
|
|
|
|
"Anchor UUIDs are empty.",
|
|
|
|
"Anchor UUIDs are empty.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -694,7 +693,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Duplicate values exist " +
|
|
|
|
"subErrorMsg": "Duplicate values exist " +
|
|
|
|
"with Payload Certificate Anchor UUIDs.",
|
|
|
|
"with Payload Certificate Anchor UUIDs.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -746,7 +745,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Duplicate values exist " +
|
|
|
|
"subErrorMsg": "Duplicate values exist " +
|
|
|
|
"with TLS Trusted Server Names.",
|
|
|
|
"with TLS Trusted Server Names.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -807,7 +806,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "One or more Roaming Consortium OIs " +
|
|
|
|
"subErrorMsg": "One or more Roaming Consortium OIs " +
|
|
|
|
"are out of allowed length.",
|
|
|
|
"are out of allowed length.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -816,7 +815,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "One or more Roaming Consortium OIs " +
|
|
|
|
"subErrorMsg": "One or more Roaming Consortium OIs " +
|
|
|
|
"contain non-hexadecimal characters.",
|
|
|
|
"contain non-hexadecimal characters.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -955,7 +954,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "One or more MCC/MNC pairs " +
|
|
|
|
"subErrorMsg": "One or more MCC/MNC pairs " +
|
|
|
|
"do not fulfill the accepted length of 6 digits.",
|
|
|
|
"do not fulfill the accepted length of 6 digits.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -1031,7 +1030,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Incoming Mail Server Port is not within the range " +
|
|
|
|
"subErrorMsg": "Incoming Mail Server Port is not within the range " +
|
|
|
|
"of valid port numbers.",
|
|
|
|
"of valid port numbers.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -1070,7 +1069,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Outgoing Mail Server Port is not within the range " +
|
|
|
|
"subErrorMsg": "Outgoing Mail Server Port is not within the range " +
|
|
|
|
"of valid port numbers.",
|
|
|
|
"of valid port numbers.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -1150,7 +1149,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "One or more Device Names of " +
|
|
|
|
"subErrorMsg": "One or more Device Names of " +
|
|
|
|
"AirPlay Credentials are empty.",
|
|
|
|
"AirPlay Credentials are empty.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -1159,7 +1158,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Duplicate values exist with " +
|
|
|
|
"subErrorMsg": "Duplicate values exist with " +
|
|
|
|
"Device Names of AirPlay Credentials.",
|
|
|
|
"Device Names of AirPlay Credentials.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -1182,7 +1181,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
// if child input field is empty
|
|
|
|
// if child input field is empty
|
|
|
|
emptyChildInputCount++;
|
|
|
|
emptyChildInputCount++;
|
|
|
|
} else if (!inputIsValidAgainstRegExp(
|
|
|
|
} else if (!inputIsValidAgainstRegExp(
|
|
|
|
/([a-z|A-Z|0-9][a-z|A-Z|0-9][:]){5}([a-z|A-Z|0-9][a-z|A-Z|0-9])$/, childInput)) {
|
|
|
|
/([a-z|A-Z|0-9][a-z|A-Z|0-9][:]){5}([a-z|A-Z|0-9][a-z|A-Z|0-9])$/, childInput)) {
|
|
|
|
// if child input field is invalid against RegEx
|
|
|
|
// if child input field is invalid against RegEx
|
|
|
|
invalidAgainstRegExCount++
|
|
|
|
invalidAgainstRegExCount++
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1217,7 +1216,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "One or more AirPlay Destination fields " +
|
|
|
|
"subErrorMsg": "One or more AirPlay Destination fields " +
|
|
|
|
"do not fulfill expected format.",
|
|
|
|
"do not fulfill expected format.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -1319,7 +1318,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Duplicate values exist with " +
|
|
|
|
"subErrorMsg": "Duplicate values exist with " +
|
|
|
|
"Search Setting Search Base and Scope pairs.",
|
|
|
|
"Search Setting Search Base and Scope pairs.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -1376,7 +1375,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Account Port is not within the range " +
|
|
|
|
"subErrorMsg": "Account Port is not within the range " +
|
|
|
|
"of valid port numbers.",
|
|
|
|
"of valid port numbers.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -1489,7 +1488,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Duplicate values exist with " +
|
|
|
|
"subErrorMsg": "Duplicate values exist with " +
|
|
|
|
"APN fields of Configurations.",
|
|
|
|
"APN fields of Configurations.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -1577,7 +1576,7 @@ validateStep["policy-profile"] = function () {
|
|
|
|
validationStatus = {
|
|
|
|
validationStatus = {
|
|
|
|
"error": true,
|
|
|
|
"error": true,
|
|
|
|
"subErrorMsg": "Duplicate values exist with " +
|
|
|
|
"subErrorMsg": "Duplicate values exist with " +
|
|
|
|
"APN fields of APN Configurations.",
|
|
|
|
"APN fields of APN Configurations.",
|
|
|
|
"erroneousFeature": operation
|
|
|
|
"erroneousFeature": operation
|
|
|
|
};
|
|
|
|
};
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
|
continueToCheckNextInputs = false;
|
|
|
@ -1815,12 +1814,7 @@ var updatePolicy = function (policy, state) {
|
|
|
|
payload["users"] = [];
|
|
|
|
payload["users"] = [];
|
|
|
|
payload["roles"] = [];
|
|
|
|
payload["roles"] = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//var serviceURL = baseApiUrl + "/policies/effective-policy/" + policy["platform"] + "/" + getParameterByName("id");
|
|
|
|
var serviceURL = base_api_url + "/policy/effective-policy/" + policy["platform"] + "/" + getParameterByName("id");
|
|
|
|
|
|
|
|
|
|
|
|
// role management
|
|
|
|
|
|
|
|
//set service url
|
|
|
|
|
|
|
|
//api/device-mgt/v1.0/ policy?........
|
|
|
|
|
|
|
|
var serviceURL = baseApiUrl + "/policy/effective-policy/" + policy["platform"] + "/" + getParameterByName("id");
|
|
|
|
|
|
|
|
invokerUtil.put(
|
|
|
|
invokerUtil.put(
|
|
|
|
serviceURL,
|
|
|
|
serviceURL,
|
|
|
|
payload,
|
|
|
|
payload,
|
|
|
@ -1829,7 +1823,7 @@ var updatePolicy = function (policy, state) {
|
|
|
|
if (state == "save") {
|
|
|
|
if (state == "save") {
|
|
|
|
var policyList = [];
|
|
|
|
var policyList = [];
|
|
|
|
policyList.push(getParameterByName("id"));
|
|
|
|
policyList.push(getParameterByName("id"));
|
|
|
|
serviceURL = baseApiUrl + "/policies/deactivate-policy";
|
|
|
|
serviceURL = base_api_url + "/policies/deactivate-policy";
|
|
|
|
invokerUtil.post(
|
|
|
|
invokerUtil.post(
|
|
|
|
serviceURL,
|
|
|
|
serviceURL,
|
|
|
|
policyList,
|
|
|
|
policyList,
|
|
|
@ -1846,7 +1840,7 @@ var updatePolicy = function (policy, state) {
|
|
|
|
} else if (state == "publish") {
|
|
|
|
} else if (state == "publish") {
|
|
|
|
var policyList = [];
|
|
|
|
var policyList = [];
|
|
|
|
policyList.push(getParameterByName("id"));
|
|
|
|
policyList.push(getParameterByName("id"));
|
|
|
|
serviceURL = baseApiUrl + "/policies/activate-policy";
|
|
|
|
serviceURL = base_api_url + "/policies/activate-policy";
|
|
|
|
invokerUtil.post(
|
|
|
|
invokerUtil.post(
|
|
|
|
serviceURL,
|
|
|
|
serviceURL,
|
|
|
|
policyList,
|
|
|
|
policyList,
|
|
|
@ -1960,14 +1954,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 slideDownVotes = 0;
|
|
|
|
var i, slideDownVotes = 0;
|
|
|
|
for (var 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");
|
|
|
@ -2057,10 +2049,7 @@ $(document).ready(function () {
|
|
|
|
|
|
|
|
|
|
|
|
var policyPayloadObj;
|
|
|
|
var policyPayloadObj;
|
|
|
|
invokerUtil.get(
|
|
|
|
invokerUtil.get(
|
|
|
|
// baseApiUrl + "/policies/" + getParameterByName("id"),
|
|
|
|
base_api_url + "/policies/effective-policy/" + getParameterByName("type") + "/" + getParameterByName("id"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
baseApiUrl + "/policies/effective-policy/" + getParameterByName("type") + "/" + getParameterByName("id"),
|
|
|
|
|
|
|
|
// on success
|
|
|
|
// on success
|
|
|
|
function (data, textStatus, jqXHR) {
|
|
|
|
function (data, textStatus, jqXHR) {
|
|
|
|
if (jqXHR.status == 200 && data) {
|
|
|
|
if (jqXHR.status == 200 && data) {
|
|
|
@ -2231,7 +2220,7 @@ $(document).ready(function () {
|
|
|
|
$(advanceOperations).on("click", "[data-click-event=add-form]", function () {
|
|
|
|
$(advanceOperations).on("click", "[data-click-event=add-form]", function () {
|
|
|
|
var addFormContainer = $("[data-add-form-container=" + $(this).attr("href") + "]");
|
|
|
|
var addFormContainer = $("[data-add-form-container=" + $(this).attr("href") + "]");
|
|
|
|
var clonedForm = $("[data-add-form=" + $(this).attr("href") + "]").clone().
|
|
|
|
var clonedForm = $("[data-add-form=" + $(this).attr("href") + "]").clone().
|
|
|
|
find("[data-add-form-element=clone]").attr("data-add-form-clone", $(this).attr("href"));
|
|
|
|
find("[data-add-form-element=clone]").attr("data-add-form-clone", $(this).attr("href"));
|
|
|
|
|
|
|
|
|
|
|
|
// adding class .child-input to capture text-input-array-values
|
|
|
|
// adding class .child-input to capture text-input-array-values
|
|
|
|
$("input, select", clonedForm).addClass("child-input");
|
|
|
|
$("input, select", clonedForm).addClass("child-input");
|
|
|
|