X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FEvent%2FForm%2FManageEvent%2FRegistration.tpl;h=3e94946cff1ebd85054e07614e5f8efe563440ad;hb=ec2b84a12f0495fc061b0e464a4df6661675c0fa;hp=0ed52370a34cdb7b2ae1ecfb63c29b0707bad141;hpb=7a86e9ede3a83491f1e831da64537304e37ee837;p=civicrm-core.git diff --git a/templates/CRM/Event/Form/ManageEvent/Registration.tpl b/templates/CRM/Event/Form/ManageEvent/Registration.tpl index 0ed52370a3..3e94946cff 100644 --- a/templates/CRM/Event/Form/ManageEvent/Registration.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Registration.tpl @@ -1,8 +1,8 @@ {* +--------------------------------------------------------------------+ - | CiviCRM version 4.5 | + | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -424,6 +424,7 @@ invert = 0 var profileBottomCountAdd = Number({/literal}{$profilePostMultipleAdd|@count}{literal}); function addBottomProfile( e ) { + var urlPath; e.preventDefault(); var addtlPartc = $(this).data('addtlPartc'); @@ -450,8 +451,9 @@ invert = 0 $(e.target).closest('tbody').find('tr:visible:last .profile_bottom_link_main,tr:visible:last .profile_bottom_add_link, tr:visible:last .profile_bottom_link, tr:visible:last .profile_bottom_add_link_main').show(); } - var strSameAs = ' - '+ts('same as for main contact')+' - '; - var strSelect = ' - '+ts('select')+' - '; + var + strSameAs = '{/literal}{ts escape='js'}- same as for main contact -{/ts}{literal}', + strSelect = '{/literal}{ts escape='js'}- select -{/ts}{literal}'; $('#crm-container').on('crmLoad', function() { var $container = $("[id^='additional_profile_'],.additional_profile").not('.processed').addClass('processed'); @@ -483,19 +485,16 @@ $(function($) { $('#additional_profile_pre,#additional_profile_post').show(); } - showRuleFields({/literal}{$ruleFields}{literal}); }); - $('#allow_same_participant_emails').change( function() { showRuleFields({/literal}{$ruleFields}{literal}) }); - $('#registration_blocks').on('click', '.crm-button-add-profile', addBottomProfile); $('#registration_blocks').on('click', '.crm-button-rem-profile', removeBottomProfile); $('#crm-container').on('crmLoad', function(e) { $('tr[id^="additional_profile"] input[id^="additional_custom_"]').change(function(e) { - $input = $(e.target); + var $input = $(e.target); if ( $input.val() == '') { - $selected = $input.closest('tr').find('.crm-profile-selector-select :selected'); + var $selected = $input.closest('tr').find('.crm-profile-selector-select :selected'); if ($selected.text() == strSelect) { $input.val('none'); } } });