CRM-13932 - update deprecated jQuery.live()
authorColeman Watts <coleman@civicrm.org>
Thu, 12 Dec 2013 02:21:41 +0000 (18:21 -0800)
committerColeman Watts <coleman@civicrm.org>
Mon, 6 Jan 2014 19:06:47 +0000 (11:06 -0800)
templates/CRM/Event/Form/ManageEvent/Registration.tpl
templates/CRM/Price/Form/LineItem.tpl

index 79d61237ad1879c09f910044fe765c4463cabc87..4c85a3dfef4957b1ca181789ab0bf342467f7dd8 100644 (file)
@@ -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());
         });
 
index 0c2107b307d76c802456c9f201b21c5f9866a1e3..5d139a7e6f8890f0951e53ed340970113ee6d7ae 100644 (file)
@@ -84,7 +84,7 @@
 {literal}
 <script type="text/javascript">
 cj(document).ready(function(){
-  cj('.distribute').live('blur', function() {
+  cj(document).on('blur', '.distribute', function() {
    var totalAmount = 0;
    cj('.distribute').each(function (){
    if(cj(this).val( ).length > 0){