Work on event check-in page

This commit is contained in:
Dave Earley 2016-04-17 20:11:54 +01:00
parent 66a50d5040
commit e24efa30cc
2 changed files with 4 additions and 3 deletions

View File

@ -29,7 +29,8 @@ class EventCheckInController extends MyBaseController
JavaScript::put([
'qrcodeCheckInRoute' => route('postQRCodeCheckInAttendee', ['event_id' => $event->id]),
'checkInRoute' => route('postCheckInSearch', ['event_id' => $event->id])
'checkInRoute' => route('postCheckInAttendee', ['event_id' => $event->id]),
'checkInSearchRoute' => route('postCheckInSearch', ['event_id' => $event->id]),
]);
return view('ManageEvent.CheckIn', $data);

View File

@ -40,7 +40,7 @@ $(document).ready(function() {
$.ajax({
type: "POST",
url: "{{route('postCheckInAttendee', ['event_id' => $event->id])}}",
url: Attendize.checkInRoute,
data: {
attendee_id: attendeeId,
has_arrived: hasArrived ? 1 : 0,
@ -135,7 +135,7 @@ function search() {
$.ajax({
type: "POST",
url: Attendize.checkInRoute,
url: Attendize.checkInSearchRoute,
data: {q: query_value},
cache: false,
error: function() {