Format all blade templates to 2 spaces #530 (#531)

This commit is contained in:
Nabeel S
2020-02-01 13:05:56 -05:00
committed by GitHub
parent 06b47d97e0
commit 59d09c0cec
254 changed files with 7123 additions and 7006 deletions

View File

@@ -1,7 +1,7 @@
@section('scripts')
<script>
$(document).ready(function () {
$("button.save_flight").click(async function (e) {
<script>
$(document).ready(function () {
$("button.save_flight").click(async function (e) {
e.preventDefault();
const btn = $(this);
@@ -9,19 +9,19 @@ $(document).ready(function () {
const flight_id = btn.attr('x-id');
if (!btn.hasClass(class_name)) {
await phpvms.bids.addBid(flight_id);
await phpvms.bids.addBid(flight_id);
console.log('successfully saved flight');
btn.addClass(class_name);
alert('@lang("flights.bidadded")');
console.log('successfully saved flight');
btn.addClass(class_name);
alert('@lang("flights.bidadded")');
} else {
await phpvms.bids.removeBid(flight_id);
await phpvms.bids.removeBid(flight_id);
console.log('successfully removed flight');
btn.removeClass(class_name);
alert('@lang("flights.bidremoved")');
console.log('successfully removed flight');
btn.removeClass(class_name);
alert('@lang("flights.bidremoved")');
}
});
});
});
</script>
</script>
@endsection