From b01353b559d1423ab2ed185aece6681d6739808c Mon Sep 17 00:00:00 2001 From: mzd Date: Mon, 28 Apr 2014 20:22:06 -0400 Subject: [PATCH] normalize js code & whitespace - move out of php, move into closure, remove use of cj() --- CRM/Event/Form/ManageEvent/Registration.php | 10 +---- .../Event/Form/ManageEvent/Registration.tpl | 44 +++++++++++-------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/CRM/Event/Form/ManageEvent/Registration.php b/CRM/Event/Form/ManageEvent/Registration.php index e4dab12dd8..2b23e76508 100644 --- a/CRM/Event/Form/ManageEvent/Registration.php +++ b/CRM/Event/Form/ManageEvent/Registration.php @@ -285,18 +285,12 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent $this->addElement('checkbox', 'is_multiple_registrations', - ts('Register multiple participants?'), - NULL, - array( - 'onclick' => "return (showHideByValue('is_multiple_registrations', '', 'additional_profile_pre|additional_profile_post', 'table-row', 'radio', false) || - showRuleFields( " . json_encode($ruleFields) . " ));") + ts('Register multiple participants?') ); $this->addElement('checkbox', 'allow_same_participant_emails', - ts('Allow multiple registrations from the same email address?'), - NULL, - array('onclick' => "return showRuleFields( " . json_encode($ruleFields) . " );") + ts('Allow multiple registrations from the same email address?') ); $this->assign('ruleFields', json_encode($ruleFields)); diff --git a/templates/CRM/Event/Form/ManageEvent/Registration.tpl b/templates/CRM/Event/Form/ManageEvent/Registration.tpl index 75b13c88da..e2d5c37166 100644 --- a/templates/CRM/Event/Form/ManageEvent/Registration.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Registration.tpl @@ -330,38 +330,43 @@ invert = 0 {include file="CRM/common/buildProfileLink.tpl"} {include file="CRM/common/formNavigate.tpl"} -- 2.25.1