Skip to content

Commit

Permalink
FIxed route issue
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshjha authored Jun 25, 2024
1 parent 82eb20d commit 5afed76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/views/permissions.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@
<script>
$(document).ready(function(){
$('#roles').on('change', function() {
window.location.href= '/{{ config('permission.adminPrefix')}}/' + "permission/roles/" + this.value + '/abilities';
window.location.href= '/{{ config('permission.adminRoutePrefix')}}/' + "permission/roles/" + this.value + '/abilities';
});
$('#updatePermission').on('click', function(){
let self = this;
$(this).html('<i class="fas fa-sync fa-spin"></i>').attr('disabled', true);
$.post('{{ route("permission.updateRoleAbility", $selectedRole->id) }}',$('#permissionsListForm').serialize(), function(response){
$.post("/{{ config('permission.adminRoutePrefix')}}/permission/roles/{{ $selectedRole->id }}/abilities",$('#permissionsListForm').serialize(), function(response){
}, 'json').fail(function(response) {
alert( "error" );
}).always(function() {
Expand All @@ -92,4 +92,4 @@
});
});
</script>
@endsection
@endsection

0 comments on commit 5afed76

Please sign in to comment.