cleanup detritus and no-longer used js functions for managing profiles
authormzd <mzd@ginkgostreet.com>
Mon, 28 Apr 2014 23:12:22 +0000 (19:12 -0400)
committermzd <mzd@ginkgostreet.com>
Wed, 30 Apr 2014 15:23:01 +0000 (11:23 -0400)
templates/CRM/Event/Form/ManageEvent/Registration.tpl

index 0fb0b8447a6701edf241251702f3e1cc770e1e82..75b13c88da3908c554945d2ff5595a6e2e4be097 100644 (file)
@@ -362,26 +362,6 @@ invert              = 0
 
       //show edit profile field links
     CRM.$(function($) {
-        // show edit for main profile
-        cj(document).on('change', 'select[id^="custom_p"]', function( event ) {
-            buildLinks( cj(this), cj(this).val());
-        });
-
-        // make sure we set edit links for main contact profile when form loads
-        cj('select[id^="custom_p"]').each( function(e) {
-            buildLinks( cj(this), cj(this).val());
-        });
-
-        //show edit profile field links in additional participant
-      cj(document).on('change', 'select[id^="additional_custom_p"]', function( event ) {
-            buildLinks( cj(this), cj(this).val());
-        });
-
-        // make sure we set edit links for additional profile  when form loads
-        cj('select[id^="additional_custom_p"]').each( function(e) {
-            buildLinks( cj(this), cj(this).val());
-        });
-
         var profileBottomCount = Number({/literal}{$profilePostMultiple|@count}{literal});
         var profileBottomCountAdd = Number({/literal}{$profilePostMultipleAdd|@count}{literal});
 
@@ -400,8 +380,6 @@ invert              = 0
 
             $(this).closest('tbody').append('<tr></tr>');
             var $el = $(this).closest('tbody').find('tr:last');
-
-//            CRM.loadPage(urlPath, { target: $el } );
             $el.load(urlPath, function() { $(this).trigger('crmLoad') });
         }