Skip to content
Snippets Groups Projects
Commit a615afcc authored by Dave Greenberg's avatar Dave Greenberg
Browse files

CRM-12248 fix status msg (should reference Supervised dedupe rule instead of...

CRM-12248 fix status msg (should reference Supervised dedupe rule instead of Unsupervised) and fix alert display to be one-at-a-time.

----------------------------------------
* CRM-12248: Configure Event: Registration tab - ruleFields variable used to display alert for Allow multiple
  http://issues.civicrm.org/jira/browse/CRM-12248
parent a2449fbb
No related branches found
No related tags found
No related merge requests found
......@@ -359,18 +359,18 @@ invert = 0
function showRuleFields( ruleFields )
{
var msg1 = '{/literal}{ts 1="' + ruleFields + '"}Primary participants will be able to register additional participants using the same e-email address. The default "Unsupervised" Dedupe Rule will use the following fields to prevent duplicate registrations: %1. First and Last Name will be used to check for matches among multiple participants.{/ts}{literal}';
var msg1 = '{/literal}{ts 1="' + ruleFields + '"}Primary participants will be able to register additional participants using the same e-email address. The configured "Supervised" Dedupe Rule will use the following fields to prevent duplicate registrations: %1. First and Last Name will be used to check for matches among multiple participants.{/ts}{literal}';
var msg2 = '{/literal}{ts escape='js'}Primary participants will be allowed to register for this event multiple times. No duplicate registration checking will be performed.{/ts}{literal}';
var msg3 = '{/literal}{ts escape='js'}Primary participants will be able to register additional participants during registration.{/ts}{literal}';
// Display info
cj('.ui-notify-message .icon.info').click();
cj('.ui-notify-message .ui-notify-close').click();
if ( cj("#allow_same_participant_emails").attr( 'checked' ) && cj("#is_multiple_registrations").attr( 'checked' ) ) {
CRM.alert( msg1, '', 'info' );
CRM.alert( msg1, '', 'info', {expires:0} );
} else if ( cj("#allow_same_participant_emails").attr( 'checked' ) && !cj("#is_multiple_registrations").attr( 'checked' ) ) {
CRM.alert( msg2, '', 'info' );
CRM.alert( msg2, '', 'info', {expires:0} );
} else if ( !cj("#allow_same_participant_emails").attr( 'checked' ) && cj("#is_multiple_registrations").attr( 'checked' ) ) {
CRM.alert( msg3, '', 'info' );
CRM.alert( msg3, '', 'info', {expires:0} );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment