Skip to content

Commit

Permalink
Merge pull request django-recaptcha#89 from kisiel/develop
Browse files Browse the repository at this point in the history
Fixed `theme` option for widget_ajax.html
  • Loading branch information
hedleyroos committed Jan 4, 2016
2 parents 7439f80 + fa2fdcd commit a34fcea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions captcha/templates/captcha/widget_ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

<div id="Recap"></div>
<script type="text/javascript">
var RecaptchaOptions = {{options}};
var RecaptchaOptions = {{ options }};
Recaptcha.create("{{ public_key }}",
"Recap",
{
theme: "red",
theme: RecaptchaOptions['theme'] || "red",
callback: Recaptcha.focus_response_field
},
RecaptchaOptions
Expand Down

0 comments on commit a34fcea

Please sign in to comment.