// insert new registrant
insertNew: function(){
+ // Show the loading Graphic
this.$('#loading-' + this.model.get('id') ).show();
var findByEmail = [];
var fname = this.$('.add_reg_fname').val().trim();
}
var rateId = this.model.get( 'rate_id' );
if ( !rateId ) {
+ // Hide the loading graphic
+ this.$('#loading-' + this.model.get('id') ).hide();
return;
}
if ( fname === '' || lname === '' ) {
alert( 'First and Last name required!' );
+ // Hide the loading graphic
+ this.$('#loading-' + this.model.get('id') ).hide();
return;
}
if ( email === '' ) {
var confAnsw = confirm( 'You have no email address! Are you sure you want to add this registrant?' );
if ( !confAnsw ) {
+ // Hide the loading graphic
+ this.$('#loading-' + this.model.get('id') ).hide();
return;
}
} else {
var regRequest = cart.get( 'request' );
var parent = this.model.get('parent');
if ( !parent ) {
+ // Hide the loading graphic
+ this.$('#loading-' + this.model.get('id') ).hide();
return;
}
},
successCallback: function( collection, repsonse ){
+ // Hide the loading graphic
this.$('#loading-' + this.model.get('id') ).hide();
},
// insert new registrant
insertNew: function(){
+ // Show the loading Graphic
this.$('#loading-' + this.model.get('id') ).show();
var findByEmail = [];
var fname = this.$('.add_reg_fname').val().trim();
}
var rateId = this.model.get( 'rate_id' );
if ( !rateId ) {
+ // Hide the loading graphic
+ this.$('#loading-' + this.model.get('id') ).hide();
return;
}
if ( fname === '' || lname === '' ) {
alert( 'First and Last name required!' );
+ // Hide the loading graphic
+ this.$('#loading-' + this.model.get('id') ).hide();
return;
}
if ( email === '' ) {
var confAnsw = confirm( 'You have no email address! Are you sure you want to add this registrant?' );
if ( !confAnsw ) {
+ // Hide the loading graphic
+ this.$('#loading-' + this.model.get('id') ).hide();
return;
}
} else {
var regRequest = cart.get( 'request' );
var parent = this.model.get('parent');
if ( !parent ) {
+ // Hide the loading graphic
+ this.$('#loading-' + this.model.get('id') ).hide();
return;
}
},
successCallback: function( collection, repsonse ){
+ // Hide the loading graphic
this.$('#loading-' + this.model.get('id') ).hide();
},