mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Redirect to Policy Listing page after editing a policy.
This commit is contained in:
parent
c754b64653
commit
85b437a0f0
@ -35,20 +35,8 @@
|
|||||||
<div class="wr-form">
|
<div class="wr-form">
|
||||||
<h1 id="policy-message-page-wizard-title" class="page-sub-title">Policy is successfully
|
<h1 id="policy-message-page-wizard-title" class="page-sub-title">Policy is successfully
|
||||||
re-configured.</h1>
|
re-configured.</h1>
|
||||||
<br>Please click <b>"Add Another Policy"</b>, if you wish to add another policy or click
|
<br>You will be redirected to Policy Listing page in a moment.
|
||||||
<b>"View policy list"</b> to complete the process and go back to the policy list.
|
</div>
|
||||||
<hr>
|
|
||||||
<button class="wr-btn wizard-stepper" data-current="policy-message"
|
|
||||||
data-direct="{{@app.context}}/policies/">
|
|
||||||
View policy list
|
|
||||||
</button>
|
|
||||||
<a href="{{@app.context}}/policies/add" class="cu-btn-inner">
|
|
||||||
<span class="fw-stack">
|
|
||||||
<i class="fw fw-circle-outline fw-stack-2x"></i>
|
|
||||||
<i class="fw fw-add fw-stack-1x"></i>
|
|
||||||
</span>
|
|
||||||
Add another policy
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -495,6 +495,9 @@ var updatePolicy = function (policy, state) {
|
|||||||
if (jqXHR.status == 200) {
|
if (jqXHR.status == 200) {
|
||||||
$(".add-policy").addClass("hidden");
|
$(".add-policy").addClass("hidden");
|
||||||
$(".policy-message").removeClass("hidden");
|
$(".policy-message").removeClass("hidden");
|
||||||
|
setTimeout(function(){
|
||||||
|
window.location.href = "/devicemgt/policies";
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// on error
|
// on error
|
||||||
@ -513,6 +516,9 @@ var updatePolicy = function (policy, state) {
|
|||||||
$(".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(){
|
||||||
|
window.location.href = "/devicemgt/policies";
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// on error
|
// on error
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user