From b967a2db766059e617e72583dd8772ab3497b1dc Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 11 Dec 2013 18:21:41 -0800 Subject: [PATCH] CRM-13932 - update deprecated jQuery.live() --- templates/CRM/Event/Form/ManageEvent/Registration.tpl | 4 ++-- templates/CRM/Price/Form/LineItem.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Event/Form/ManageEvent/Registration.tpl b/templates/CRM/Event/Form/ManageEvent/Registration.tpl index 79d61237ad..4c85a3dfef 100644 --- a/templates/CRM/Event/Form/ManageEvent/Registration.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Registration.tpl @@ -427,7 +427,7 @@ invert = 0 //show edit profile field links cj(function() { // show edit for main profile - cj('select[id^="custom_p"]').live( 'change', function( event ) { + cj(document).on('change', 'select[id^="custom_p"]', function( event ) { buildLinks( cj(this), cj(this).val()); }); @@ -437,7 +437,7 @@ invert = 0 }); //show edit profile field links in additional participant - cj('select[id^="additional_custom_p"]').live( 'change', function( event ) { + cj(document).on('change', 'select[id^="additional_custom_p"]', function( event ) { buildLinks( cj(this), cj(this).val()); }); diff --git a/templates/CRM/Price/Form/LineItem.tpl b/templates/CRM/Price/Form/LineItem.tpl index 0c2107b307..5d139a7e6f 100644 --- a/templates/CRM/Price/Form/LineItem.tpl +++ b/templates/CRM/Price/Form/LineItem.tpl @@ -84,7 +84,7 @@ {literal}