CRM-12872 Additional Fix
authorJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Thu, 7 Aug 2014 05:03:07 +0000 (10:33 +0530)
committerJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Thu, 7 Aug 2014 05:03:07 +0000 (10:33 +0530)
js/Common.js

index 9d7961abefab6ec59df7201266e59a7ed84c58b1..317b6279398d3c1be4cceb74dfaf48d84e7fa9c0 100644 (file)
@@ -516,6 +516,9 @@ CRM.strings = CRM.strings || {};
           }
         })
         .find('input.select-row:checked').parents('tr').addClass('crm-row-selected');
+      if ($("input:radio[name=radio_ts]").size() == 1) {
+        $("input:radio[name=radio_ts]").prop("checked", true);
+      }
       $('.crm-select2:not(.select2-offscreen, .select2-container)', e.target).crmSelect2();
       $('.crm-form-entityref:not(.select2-offscreen, .select2-container)', e.target).crmEntityRef();
       // Cache Form Input initial values