From: Steve Sutton Date: Mon, 8 Oct 2018 15:07:57 +0000 (-0400) Subject: Update for max per request X-Git-Tag: v1.2.0^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=c4a10171f68a3e9b34fb37fcc771b45c2550e15f;p=WP-Plugins%2Fglm-member-db-registrations.git Update for max per request Update text so it is shorter to fit in mobile. Setup so it is per time. --- diff --git a/js/frontRegApp.js b/js/frontRegApp.js index f7ff329..59301bd 100644 --- a/js/frontRegApp.js +++ b/js/frontRegApp.js @@ -952,7 +952,7 @@ app.Views.Front.RegTime = Backbone.View.extend({ // add new account addNewAccount: function(){ if ( app.checkForMaxAttendees() === true ) { - $('.glm-attendee-maxed').show(); + $('.glm-attendee-maxed-' + this.model.get( 'id' ) ).show(); return; } // check for the lock diff --git a/js/views/front/regTime.js b/js/views/front/regTime.js index 69c4e71..5c97745 100644 --- a/js/views/front/regTime.js +++ b/js/views/front/regTime.js @@ -47,7 +47,7 @@ app.Views.Front.RegTime = Backbone.View.extend({ // add new account addNewAccount: function(){ if ( app.checkForMaxAttendees() === true ) { - $('.glm-attendee-maxed').show(); + $('.glm-attendee-maxed-' + this.model.get( 'id' ) ).show(); return; } // check for the lock diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index f615efc..fd2cf51 100755 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -230,11 +230,11 @@
{/literal}{if $regEvent.attendee_max_per_reg}{literal} - + {/literal}{/if}{literal} List of {/literal}{$terms.reg_term_attendee_plur}{literal} {/literal}{if $regEvent.attendee_max_per_reg}{literal} - Max {/literal}{$regEvent.attendee_max_per_reg} {literal} per Request + Max {/literal}{$regEvent.attendee_max_per_reg}{literal}/Request {/literal}{/if}{literal}