Redirect to Permission listing after creating permission.

revert-70aa11f8
Menaka Jayawardena 7 years ago
parent 815d92bd27
commit 9ee5056967

@ -69,19 +69,8 @@
<div id="role-created-msg" class="container col-centered wr-content hidden"> <div id="role-created-msg" class="container col-centered wr-content hidden">
<div class="wr-form"> <div class="wr-form">
<p class="page-sub-title">Permissions were assigned to the role successfully.</p> <p class="page-sub-title">Permissions were assigned to the role successfully.</p>
<br>Please click <b>"Add Another Role"</b>, if you wish to add another role or click <br>You will be redirected to Roles Listing Page in a moment.
<b>"View Role List"</b> to complete the process and go back to the role list.
<hr /> <hr />
<button class="wr-btn" onclick="window.location.href='{{@app.context}}/roles'">
View Role List
</button>
<a href="{{@app.context}}/role/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 Role
</a>
</div> </div>
</div> </div>
<!-- /content --> <!-- /content -->

@ -184,6 +184,8 @@ $(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);
window.location.href = "/devicemgt/roles";
} }
}, function (data) { }, function (data) {
var payload = JSON.parse(data.responseText); var payload = JSON.parse(data.responseText);

Loading…
Cancel
Save