Update all places in the code referencing named routes using JS that doesn't exist now
This commit is contained in:
parent
14b1f13fe0
commit
447c4291ad
20 changed files with 12 additions and 2115 deletions
|
@ -131,7 +131,7 @@
|
|||
}, function () {
|
||||
$.ajax({
|
||||
method: 'DELETE',
|
||||
url: Router.route('admin.servers.view.database.delete', { server: '{{ $server->id }}', database: self.data('id') }),
|
||||
url: '/admin/servers/view/{{ $server->id }}/database/' + self.data('id') + '/delete',
|
||||
headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') },
|
||||
}).done(function () {
|
||||
self.parent().parent().slideUp();
|
||||
|
@ -152,7 +152,7 @@
|
|||
$(this).addClass('disabled').find('i').addClass('fa-spin');
|
||||
$.ajax({
|
||||
type: 'PATCH',
|
||||
url: Router.route('admin.servers.view.database', { server: '{{ $server->id }}' }),
|
||||
url: '/admin/servers/view/{{ $server->id }}/database',
|
||||
headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') },
|
||||
data: { database: $(this).data('id') },
|
||||
}).done(function (data) {
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
<script>
|
||||
$('#pUserId').select2({
|
||||
ajax: {
|
||||
url: Router.route('admin.users.json'),
|
||||
url: '/admin/users/accounts.json',
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
data: function (params) {
|
||||
|
|
Reference in a new issue