* Refactor all JS API calls #360 * Remove unused imports * Lint JS * Fix doubled api key * Formatting * Added extra logging to distance lookup * Remove the .editorconfig file in distrib * shell check fixes * Remove the .editorconfig file in distrib
This commit is contained in:
@@ -3,14 +3,12 @@
|
||||
const select_id = "select#aircraft_select";
|
||||
const destContainer = $('#fares_container');
|
||||
|
||||
$(select_id).change((e) => {
|
||||
|
||||
$(select_id).change(e => {
|
||||
const aircraft_id = $(select_id + ' option:selected').val();
|
||||
const url = '{{ url('/pireps/fares') }}?aircraft_id=' + aircraft_id;
|
||||
const url = '/pireps/fares?aircraft_id=' + aircraft_id;
|
||||
console.log('aircraft select change: ', aircraft_id);
|
||||
|
||||
axios.get(url).then(response => {
|
||||
console.log('returned new fares', response);
|
||||
phpvms.request(url).then(response => {
|
||||
destContainer.html(response.data);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user