From c4a10171f68a3e9b34fb37fcc771b45c2550e15f Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 8 Oct 2018 11:07:57 -0400 Subject: [PATCH] Update for max per request Update text so it is shorter to fit in mobile. Setup so it is per time. --- js/frontRegApp.js | 2 +- js/views/front/regTime.js | 2 +- views/front/registrations/registration.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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}