From: Kurund Jalmi Date: Fri, 3 May 2013 00:51:44 +0000 (-0700) Subject: CRM-12463, formRule js fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9ee061a4897885647fdac53b7ce1e51323ddb838;p=civicrm-core.git CRM-12463, formRule js fixes --- diff --git a/templates/CRM/Contribute/Form/SoftCredit.js b/templates/CRM/Contribute/Form/SoftCredit.js index 668b007e31..001b210f46 100644 --- a/templates/CRM/Contribute/Form/SoftCredit.js +++ b/templates/CRM/Contribute/Form/SoftCredit.js @@ -43,4 +43,10 @@ cj(function($) { } }); + $('.crm-soft-credit-block tr span').each(function () { + if ($(this).hasClass('crm-error')) { + $(this).parents('tr').show(); + } + }); + }); diff --git a/templates/CRM/Contribute/Form/SoftCredit.tpl b/templates/CRM/Contribute/Form/SoftCredit.tpl index 2030419394..a3111adef6 100644 --- a/templates/CRM/Contribute/Form/SoftCredit.tpl +++ b/templates/CRM/Contribute/Form/SoftCredit.tpl @@ -29,7 +29,7 @@ {section name='i' start=1 loop=$rowCount} {assign var='rowNumber' value=$smarty.section.i.index} - {ts}Soft Credit To{/ts} + {ts}Select Contact{/ts} {assign var='createNewStatus' value=true} {if !$showCreateNew and $rowNumber lt $showSoftCreditRow}