Browse Source

ommited file

Rafał Pitoń 10 years ago
parent
commit
a05d5200db
1 changed files with 12 additions and 0 deletions
  1. 12 0
      misago/emberapp/app/components/recaptcha-field.js

+ 12 - 0
misago/emberapp/app/components/recaptcha-field.js

@@ -0,0 +1,12 @@
+/* global grecaptcha */
+import FormRow from 'misago/components/form-row';
+
+export default FormRow.extend({
+  classNames: ['form-re-captcha'],
+
+  renderWidget: function() {
+    grecaptcha.render('g-captcha', {
+      'sitekey': settings.recaptcha_site_key
+    });
+  }.on('didInsertElement')
+});