From 12d2b6f2704a8bb1778407eada21eb8a1db06353 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 7 Apr 2015 20:56:18 -0400 Subject: [PATCH] Minor js cleanup --- templates/CRM/Event/Form/ManageEvent/Registration.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Event/Form/ManageEvent/Registration.tpl b/templates/CRM/Event/Form/ManageEvent/Registration.tpl index f2264b83db..01a1e92a99 100644 --- a/templates/CRM/Event/Form/ManageEvent/Registration.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Registration.tpl @@ -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'); @@ -490,9 +491,9 @@ $(function($) { $('#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'); } } }); -- 2.25.1