Update call to create registrant
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 21 Dec 2017 21:09:37 +0000 (16:09 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 21 Dec 2017 21:09:37 +0000 (16:09 -0500)
adding {wait:true} to the create call when adding a new attendee so it
will wait until done before closing the form.

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

index 2eea7df..2d956b0 100644 (file)
@@ -1017,7 +1017,7 @@ app.Views.Front.RegTime = Backbone.View.extend({
             zip: zip,
             country: country,
             customFields: customFieldData,
-        });
+        }, {wait:true});
 
         this.$('.glm-add-new-account').show();
         this.newRegAccount.destroy();
index 150921a..791119a 100644 (file)
@@ -124,7 +124,7 @@ app.Views.Front.RegTime = Backbone.View.extend({
             zip: zip,
             country: country,
             customFields: customFieldData,
-        });
+        }, {wait:true});
 
         this.$('.glm-add-new-account').show();
         this.newRegAccount.destroy();