// add new account
addNewAccount: function(){
if ( app.checkForMaxAttendees() === true ) {
- alert( 'You\'re only allowed to have ' + app.attendeeMaxPerReg + ' ' + app.attendeePlurCapTerm + ' per Registration!' );
+ $('.glm-attendee-maxed').show();
return;
}
// check for the lock
// add new account
addNewAccount: function(){
if ( app.checkForMaxAttendees() === true ) {
- alert( 'You\'re only allowed to have ' + app.attendeeMaxPerReg + ' ' + app.attendeePlurCapTerm + ' per Registration!' );
+ $('.glm-attendee-maxed').show();
return;
}
// check for the lock
<div class="glm-time-full" style="display:none;">There is no more availability for this time.</div>
<div class="reg-class-accounts">
+ {/literal}{if $regEvent.attendee_max_per_reg}{literal}
+ <div class="glm-attendee-maxed" style="display:none;color:red;">You're only allowed to have {/literal}{$regEvent.attendee_max_per_reg} {$terms.reg_term_attendee_plur_cap}{literal} per Request!</div>
+ {/literal}{/if}{literal}
<span class="reg-class-accounts-title">List of {/literal}{$terms.reg_term_attendee_plur}{literal}</span>
+ {/literal}{if $regEvent.attendee_max_per_reg}{literal}
+ <span class="reg-class-accounts-title" style="float:right;">Max {/literal}{$regEvent.attendee_max_per_reg} {literal} per Request</span>
+ {/literal}{/if}{literal}
</div>
<img style="display:none;"
src="{/literal}{$pluginAssetsUrl}{literal}/ajax-loader.gif"