Update all places in the code referencing named routes using JS that doesn't exist now

This commit is contained in:
Dane Everitt 2019-12-15 18:19:35 -08:00
parent 14b1f13fe0
commit 447c4291ad
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
20 changed files with 12 additions and 2115 deletions

View file

@ -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) {

View file

@ -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) {