Minor js cleanup
authorColeman Watts <coleman@civicrm.org>
Wed, 8 Apr 2015 00:56:18 +0000 (20:56 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 8 Apr 2015 00:56:18 +0000 (20:56 -0400)
templates/CRM/Event/Form/ManageEvent/Registration.tpl

index f2264b83db005eceaacad4a17979724eddf7bef0..01a1e92a9926f171763623ae23cd933d1cd0ae5c 100644 (file)
@@ -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'); }
             }
         });