Fix JS for input buttons that are now button buttons
[civicrm-core.git] / templates / CRM / common / deferredFinancialType.tpl
index 0b8f6645c1582466ab42b5ab0aed32f79a74afbd..10c9628b2dbd36daa610a2d3ccbeb3dad50e1489 100644 (file)
@@ -12,7 +12,7 @@
 {literal}
 <script type="text/javascript">
 CRM.$(function($) {
-  var more = $('.crm-button input.validate').click(function(e) {
+  var more = $('.crm-button.validate').click(function(e) {
     var message = "{/literal} {if $context eq 'Event'}
         {ts escape='js'}Note: Revenue for this event registration will not be deferred as the financial type does not have a deferred revenue account setup for it. If you want the revenue to be deferred, please select a different Financial Type with a Deferred Revenue account setup for it, or setup a Deferred Revenue account for this Financial Type.{/ts}
       {else if $context eq 'MembershipType'}