Update for events with times
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 17 Apr 2018 15:26:42 +0000 (11:26 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 17 Apr 2018 15:26:42 +0000 (11:26 -0400)
Testing out reg event with time specific events.

js/frontRegApp.js
js/views/front/regTime.js

index aac3157..7897b4c 100644 (file)
@@ -947,7 +947,11 @@ app.Views.Front.RegTime = Backbone.View.extend({
         this.$('.glm-add-new-account').hide();
         // Create the new Registrant View
         if ( app.timeSpecific ) {
-            this.newRegAccount = new app.Models.Front.RegRequestRegistrant({ reg_time: this.model.get( 'selectedTime' ) });
+            this.newRegAccount = new app.Models.Front.RegRequestRegistrant({
+                reg_time: this.model.get( 'selectedTime' ),
+                reg_event: this.model.get('reg_event'),
+                reg_class: this.model.get( 'parent' )
+            });
         } else {
             this.newRegAccount = new app.Models.Front.RegRequestRegistrant({
                 reg_event: this.model.get('reg_event'),
index f99dd87..a96fc2c 100644 (file)
@@ -53,7 +53,11 @@ app.Views.Front.RegTime = Backbone.View.extend({
         this.$('.glm-add-new-account').hide();
         // Create the new Registrant View
         if ( app.timeSpecific ) {
-            this.newRegAccount = new app.Models.Front.RegRequestRegistrant({ reg_time: this.model.get( 'selectedTime' ) });
+            this.newRegAccount = new app.Models.Front.RegRequestRegistrant({
+                reg_time: this.model.get( 'selectedTime' ),
+                reg_event: this.model.get('reg_event'),
+                reg_class: this.model.get( 'parent' )
+            });
         } else {
             this.newRegAccount = new app.Models.Front.RegRequestRegistrant({
                 reg_event: this.model.get('reg_event'),