|
|
|
@ -495,6 +495,9 @@ var updatePolicy = function (policy, state) {
|
|
|
|
|
if (jqXHR.status == 200) {
|
|
|
|
|
$(".add-policy").addClass("hidden");
|
|
|
|
|
$(".policy-message").removeClass("hidden");
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.href = "/devicemgt/policies";
|
|
|
|
|
}, 1000);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// on error
|
|
|
|
@ -513,6 +516,9 @@ var updatePolicy = function (policy, state) {
|
|
|
|
|
$(".add-policy").addClass("hidden");
|
|
|
|
|
$(".policy-naming").addClass("hidden");
|
|
|
|
|
$(".policy-message").removeClass("hidden");
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.href = "/devicemgt/policies";
|
|
|
|
|
}, 1000);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// on error
|
|
|
|
|