Skip to content
Snippets Groups Projects
Commit 90a4b1d1 authored by mattwire's avatar mattwire
Browse files

Handle drupal webform with js debugging

parent febc709f
No related branches found
No related tags found
No related merge requests found
{*
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC. All rights reserved. |
| |
| This work is published under the GNU AGPLv3 license with some |
| permitted exceptions and without any warranty. For full license |
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Manually create the CRM.vars.payment here for drupal webform because \Civi::resources()->addVars() does not work in this context *}
{literal}
<script type="text/javascript">
CRM.$(function($) {
$(document).ready(function() {
if (typeof CRM.vars.payment === 'undefined') {
var paymentJSVars = {{/literal}{foreach from=$paymentJSVars key=arrayKey item=arrayValue}{$arrayKey}:'{$arrayValue}',{/foreach}{literal}};
CRM.vars.payment = paymentJSVars;
}
});
});
</script>
{/literal}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment