mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Restructured the setTimeout function.
This commit is contained in:
parent
e238cfd2f9
commit
d8a8f6adf7
@ -428,8 +428,10 @@ var savePolicy = function (policy, isActive, serviceURL) {
|
|||||||
$(".add-policy").addClass("hidden");
|
$(".add-policy").addClass("hidden");
|
||||||
$(".policy-naming").addClass("hidden");
|
$(".policy-naming").addClass("hidden");
|
||||||
$(".policy-message").removeClass("hidden");
|
$(".policy-message").removeClass("hidden");
|
||||||
setTimeout(function(){}, 1000);
|
setTimeout(function(){
|
||||||
window.location.href = "/devicemgt/policies";
|
window.location.href = "/devicemgt/policies";
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
},
|
},
|
||||||
function (data) {
|
function (data) {
|
||||||
}
|
}
|
||||||
|
|||||||
@ -184,8 +184,10 @@ $(document).ready(function () {
|
|||||||
// Refreshing with success message
|
// Refreshing with success message
|
||||||
$("#role-create-form").addClass("hidden");
|
$("#role-create-form").addClass("hidden");
|
||||||
$("#role-created-msg").removeClass("hidden");
|
$("#role-created-msg").removeClass("hidden");
|
||||||
setTimeout(function(){}, 1000);
|
setTimeout(function(){
|
||||||
window.location.href = "/devicemgt/roles";
|
window.location.href = "/devicemgt/roles";
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
}
|
}
|
||||||
}, function (data) {
|
}, function (data) {
|
||||||
var payload = JSON.parse(data.responseText);
|
var payload = JSON.parse(data.responseText);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user