Fix AJAX URLs for when running in a subfolder
This commit is contained in:
@@ -18,7 +18,7 @@ $(document).ready(function() {
|
|||||||
type: 'text',
|
type: 'text',
|
||||||
mode: 'inline',
|
mode: 'inline',
|
||||||
emptytext: '0',
|
emptytext: '0',
|
||||||
url: '/admin/airports/fuel',
|
url: '{!! url('/admin/airports/fuel') !!}',
|
||||||
title: 'Enter price per unit of fuel',
|
title: 'Enter price per unit of fuel',
|
||||||
ajaxOptions: {'type': 'put'},
|
ajaxOptions: {'type': 'put'},
|
||||||
params: function(params) {
|
params: function(params) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function setEditable() {
|
|||||||
type: 'text',
|
type: 'text',
|
||||||
mode: 'inline',
|
mode: 'inline',
|
||||||
emptytext: 'default',
|
emptytext: 'default',
|
||||||
url: '/admin/subfleets/{!! $subfleet->id !!}/fares',
|
url: '{!! url('/admin/subfleets/'.$subfleet->id.'/fares') !!}',
|
||||||
title: 'Enter override value',
|
title: 'Enter override value',
|
||||||
ajaxOptions: {'type': 'put'},
|
ajaxOptions: {'type': 'put'},
|
||||||
params: function (params) {
|
params: function (params) {
|
||||||
|
|||||||
Reference in New Issue
Block a user