Skip to content

Commit

Permalink
Fixed #24: Added missing JS file
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael H. Arieli committed Aug 28, 2014
1 parent dce1915 commit 7340009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Resources/views/Form/ewz_recaptcha_widget.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<?php else ?>
<div id="ewz_recaptcha_div"></div>

<script src="<?php echo $url_api ?>" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
Recaptcha.create('<?php echo $public_key ?>', 'ewz_recaptcha_div', <?php echo json_encode($attr['options']) ?>);
Expand Down
1 change: 1 addition & 0 deletions Resources/views/Form/ewz_recaptcha_widget.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
{% else %}
<div id="ewz_recaptcha_div"></div>

<script src="{{ form.vars.url_api }}" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
Recaptcha.create('{{ form.vars.public_key }}', 'ewz_recaptcha_div', {{ attr.options|default({})|json_encode|raw }});
Expand Down

0 comments on commit 7340009

Please sign in to comment.