[REF] Fix a couple of jQuery errors that have cropped up
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 16 Jul 2020 23:22:42 +0000 (09:22 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 16 Jul 2020 23:22:42 +0000 (09:22 +1000)
js/Common.js
templates/CRM/Contact/Page/View/Summary.js

index 33cefb23f1043c8ed8b59a3e602f12579c0ffa05..56f17f8b165d0e7266962ee10df8e732a93596b4 100644 (file)
@@ -967,7 +967,7 @@ if (!CRM.vars) CRM.vars = {};
           });
         }
       });
-      if ($("input:radio[name=radio_ts]").size() == 1) {
+      if ($("input:radio[name=radio_ts]").length == 1) {
         $("input:radio[name=radio_ts]").prop("checked", true);
       }
       $('.crm-select2:not(.select2-offscreen, .select2-container)', e.target).crmSelect2();
index a610482703dd6839dab9591f443bf6233cd8edd5..1d57d9992ccee5e955bd5c1089ea3d17dc5f965d 100644 (file)
       document.title = $('title').html().replace(oldName, contactName);
       oldName = contactName;
     }
-    $('#contactname-block').load(refreshTitle);
+    $('#contactname-block').on('load', refreshTitle);
     refreshTitle();
 
     var clicking;