Skip to content

Commit

Permalink
fix js error, issue 326
Browse files Browse the repository at this point in the history
  • Loading branch information
adixon committed Oct 27, 2020
1 parent 4d179f4 commit e6c3e23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CRM/Core/Payment/Faps.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ public function buildForm(&$form) {
];
$resources = CRM_Core_Resources::singleton();
$cryptoCss = $resources->getUrl('com.iatspayments.civicrm', 'css/crypto.css');
$markup = '<link type="text/css" rel="stylesheet" href="'.$cryptoCss.'" media="all" /><script type="text/javascript" src="'.$cryptojs.'"></script>';
$markup = '<link type="text/css" rel="stylesheet" href="'.$cryptoCss.'" media="all" />'; // <script type="text/javascript" src="'.$cryptojs.'"></script>';
CRM_Core_Region::instance('billing-block')->add(array(
'markup' => $markup,
));
));
// the cryptojs above is the one on the 1pay server, now I load and invoke the extension's crypto.js
$myCryptoJs = $resources->getUrl('com.iatspayments.civicrm', 'js/crypto.js');
// after manually doing what addVars('iats', $jsVariables) would normally do
Expand Down
2 changes: 1 addition & 1 deletion CRM/Core/Payment/FapsACH.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function buildForm(&$form) {
];
$resources = CRM_Core_Resources::singleton();
$cryptoCss = $resources->getUrl('com.iatspayments.civicrm', 'css/crypto.css');
$markup = '<link type="text/css" rel="stylesheet" href="'.$cryptoCss.'" media="all" /><script type="text/javascript" src="'.$cryptojs.'"></script>';
$markup = '<link type="text/css" rel="stylesheet" href="'.$cryptoCss.'" media="all" />'; // <script type="text/javascript" src="'.$cryptojs.'"></script>';
CRM_Core_Region::instance('billing-block')->add(array(
'markup' => $markup,
));
Expand Down

0 comments on commit e6c3e23

Please sign in to comment.