From: Steve Sutton Date: Thu, 21 Dec 2017 21:09:37 +0000 (-0500) Subject: Update call to create registrant X-Git-Tag: v1.0.0^2~142 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=1caf9c3ce340981ae15e60065760f27a6d6ca091;p=WP-Plugins%2Fglm-member-db-registrations.git Update call to create registrant adding {wait:true} to the create call when adding a new attendee so it will wait until done before closing the form. --- diff --git a/js/frontRegApp.js b/js/frontRegApp.js index 2eea7df..2d956b0 100644 --- a/js/frontRegApp.js +++ b/js/frontRegApp.js @@ -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(); diff --git a/js/views/front/regTime.js b/js/views/front/regTime.js index 150921a..791119a 100644 --- a/js/views/front/regTime.js +++ b/js/views/front/regTime.js @@ -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();