CRM-12463, formRule js fixes
authorKurund Jalmi <kurund@civicrm.org>
Fri, 3 May 2013 00:51:44 +0000 (17:51 -0700)
committerKurund Jalmi <kurund@civicrm.org>
Fri, 3 May 2013 00:51:44 +0000 (17:51 -0700)
templates/CRM/Contribute/Form/SoftCredit.js
templates/CRM/Contribute/Form/SoftCredit.tpl

index 668b007e3146a9fdc36c6e4f1c8df7d42f82bbd5..001b210f466459a58b179bb871cf6eb2fa52c000 100644 (file)
@@ -43,4 +43,10 @@ cj(function($) {
     }
   });
 
+  $('.crm-soft-credit-block tr span').each(function () {
+    if ($(this).hasClass('crm-error')) {
+      $(this).parents('tr').show();
+    }
+  });
+
 });
index 203041939406612584c35e9d1722b0413080068f..a3111adef6417bd23cf3da646dca93130825cc87 100644 (file)
@@ -29,7 +29,7 @@
 {section name='i' start=1 loop=$rowCount}
 {assign var='rowNumber' value=$smarty.section.i.index}
   <tr id="soft-credit-row-{$rowNumber}" class="crm-contribution-form-block-soft_credit_to {if $rowNumber gte $showSoftCreditRow}hiddenElement{/if}">
-    <td class="label">{ts}Soft Credit To{/ts}</td>
+    <td class="label">{ts}Select Contact{/ts}</td>
     <td>
       {assign var='createNewStatus' value=true}
       {if !$showCreateNew and $rowNumber lt $showSoftCreditRow}