// add new account
addNewAccount: function(){
if ( app.checkForMaxAttendees() === true ) {
- alert( app.attendeePlurCapTerm + ' are currently limited to ' + app.attendeeMaxPerReg + ' per submission for this ' + app.eventCapTerm + '!');
+ alert( 'You\'re only allowed to have ' + app.attendeeMaxPerReg + ' ' + app.attendeePlurCapTerm + ' per Registration!' );
return;
}
// check for the lock
if ( app.checkForEditLock() === true ) {
return;
}
+ // Save the current screen position for Y
+ regPositionX = 0;
+ regPositionY = document.documentElement.scrollTop;
this.$('.glm-add-new-account').hide();
// Create the new Registrant View
if ( app.timeSpecific ) {
},{ wait: true, error: this.errorCallback });
this.$('.glm-add-new-account').show();
+ window.scrollTo( regPositionX, regPositionY );
this.newRegAccount.destroy();
this.newRegAccountView.remove();
app.regEventLock = false;
// cancel add new registrant
cancelAddNew: function(){
this.$('.glm-add-new-account').show();
+ window.scrollTo( regPositionX, regPositionY );
this.newRegAccount.destroy();
this.newRegAccountView.remove();
app.regEventLock = false;
if ( app.checkForEditLock() === true ) {
return;
}
+ // Save the current screen position for Y
+ regPositionX = 0;
+ regPositionY = document.documentElement.scrollTop;
this.$('.glm-add-new-account').hide();
// Create the new Registrant View
if ( app.timeSpecific ) {
},{ wait: true, error: this.errorCallback });
this.$('.glm-add-new-account').show();
+ window.scrollTo( regPositionX, regPositionY );
this.newRegAccount.destroy();
this.newRegAccountView.remove();
app.regEventLock = false;
// cancel add new registrant
cancelAddNew: function(){
this.$('.glm-add-new-account').show();
+ window.scrollTo( regPositionX, regPositionY );
this.newRegAccount.destroy();
this.newRegAccountView.remove();
app.regEventLock = false;
var thisPageUrl = '{$thisUrl}';
var nextPageUrl = '{$thisUrl}?page=cart';
var customFieldActive = '{$customfieldActive}';
+var regPositionX = 0;
+var regPositionY = 0;
var app = {
Models: { Front: {}, Admin: {} },
Collections: { Front: {}, Admin: {} },