Make sure inline scripts in admin all have the full base url

This commit is contained in:
Nabeel Shahzad
2018-03-14 18:14:35 -05:00
parent e5ff927f7d
commit 2aae789e2a
4 changed files with 22 additions and 10 deletions

View File

@@ -3,8 +3,8 @@
function setEditable() {
const csrf_token = $('meta[name="csrf-token"]').attr('content');
const api_key = $('meta[name="api-key"]').attr('content');
const csrf_token = $('meta[name="csrf-token"]').attr('content');
$('#flight_fares a').editable({
type: 'text',
@@ -41,7 +41,7 @@ $(document).ready(function () {
type: 'text',
mode: 'inline',
emptytext: '0',
url: '/admin/flights/{{ $flight->id }}/fields',
url: '{{ url('/admin/flights/'.$flight->id.'/fields') }}',
ajaxOptions: {
type: 'post',
headers: {