xref: /plugin/captcha/script.js (revision 50259474140c4399b1fa876c93a603ae3e7f25ef)
1/**
2 * Autofill and hide the whole captcha stuff in the simple JS mode
3 */
4jQuery(function () {
5    var $code = jQuery('#plugin__captcha_code');
6    if (!$code.length) return;
7
8    var $box = jQuery('#plugin__captcha_wrapper input[type=text]');
9    $box.first().val($code.text().replace(/([^A-Z])+/g, ''));
10
11    jQuery('#plugin__captcha_wrapper').hide();
12});
13