simplified fix for CRM-17589 (colemanw)
authorsystopia <endres@systopia.de>
Thu, 7 Jan 2016 16:31:30 +0000 (17:31 +0100)
committersystopia <endres@systopia.de>
Thu, 7 Jan 2016 16:31:30 +0000 (17:31 +0100)
templates/CRM/Contribute/Form/Contribution.tpl

index 1cb854d5cd4b0d95cb35cc1c642dd4c1b9bdbb99..95f2dd8194d3b1429daa075f9e2bf5115401440a 100644 (file)
      });
 
      function showHideCancelInfo(obj) {
-       var selected_status_id  = obj.find(":selected").val();
        var cancelInfo_show_ids = [{/literal}{$cancelInfo_show_ids}{literal}];
-       if (cancelInfo_show_ids.indexOf(selected_status_id) > -1) {
+       if (cancelInfo_show_ids.indexOf(obj.val()) > -1) {
          cj('#cancelInfo').show( );
          cj('#total_amount').attr('readonly', true);
        }