mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Enaled policy description on effective policy view
This commit is contained in:
parent
fbbd6790b9
commit
049c6bcdae
@ -81,40 +81,33 @@ var displayPolicy = function (policyPayloadObj) {
|
|||||||
var policyOperationsStylesSrc = context + '/public/cdmf.unit.device.type.' + deviceType +
|
var policyOperationsStylesSrc = context + '/public/cdmf.unit.device.type.' + deviceType +
|
||||||
'.policy-view/css/' + deviceType + '-policy-view.css';
|
'.policy-view/css/' + deviceType + '-policy-view.css';
|
||||||
var policyOperationsTemplateCacheKey = deviceType + '-policy-operations';
|
var policyOperationsTemplateCacheKey = deviceType + '-policy-operations';
|
||||||
|
|
||||||
$.isResourceExists(policyOperationsTemplateSrc, function (status) {
|
$.isResourceExists(policyOperationsTemplateSrc, function (status) {
|
||||||
if (status) {
|
$.template(policyOperationsTemplateCacheKey, policyOperationsTemplateSrc, function (template) {
|
||||||
$.template(policyOperationsTemplateCacheKey, policyOperationsTemplateSrc, function (template) {
|
var content = template();
|
||||||
var content = template();
|
$("#device-type-policy-operations").html(content).removeClass("hidden");
|
||||||
$("#device-type-policy-operations").html(content).removeClass("hidden");
|
$(".policy-platform").addClass("hidden");
|
||||||
$(".policy-platform").addClass("hidden");
|
$.isResourceExists(policyOperationsScriptSrc, function (status) {
|
||||||
$.isResourceExists(policyOperationsScriptSrc, function (status) {
|
var script = document.createElement('script');
|
||||||
if (status) {
|
script.type = 'text/javascript';
|
||||||
var script = document.createElement('script');
|
script.src = policyOperationsScriptSrc;
|
||||||
script.type = 'text/javascript';
|
$(".wr-advance-operations").prepend(script);
|
||||||
script.src = policyOperationsScriptSrc;
|
/*
|
||||||
$(".wr-advance-operations").prepend(script);
|
This method should be implemented in the relevant plugin side and should include the logic to
|
||||||
/*
|
populate the policy profile in the plugin specific UI.
|
||||||
This method should be implemented in the relevant plugin side and should include the logic to
|
*/
|
||||||
populate the policy profile in the plugin specific UI.
|
polulateProfileOperations(policyPayloadObj["profile"]["profileFeaturesList"]);
|
||||||
*/
|
|
||||||
polulateProfileOperations(policyPayloadObj["profile"]["profileFeaturesList"]);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$.isResourceExists(policyOperationsStylesSrc, function (status) {
|
||||||
|
var style = document.createElement('link');
|
||||||
|
style.type = 'text/css';
|
||||||
|
style.rel = 'stylesheet';
|
||||||
|
style.href = policyOperationsStylesSrc;
|
||||||
|
$(".wr-advance-operations").prepend(style);
|
||||||
|
});
|
||||||
|
|
||||||
$.isResourceExists(policyOperationsStylesSrc, function (status) {
|
|
||||||
if (status) {
|
|
||||||
var style = document.createElement('link');
|
|
||||||
style.type = 'text/css';
|
|
||||||
style.rel = 'stylesheet';
|
|
||||||
style.href = policyOperationsStylesSrc;
|
|
||||||
$(".wr-advance-operations").prepend(style);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
$("#generic-policy-operations").removeClass("hidden");
|
|
||||||
}
|
|
||||||
$(".wr-advance-operations-init").addClass("hidden");
|
$(".wr-advance-operations-init").addClass("hidden");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user