1/** 2 * Autofill and hide the whole captcha stuff in the simple JS mode 3 */ 4addInitEvent(function(){ 5 var code = $('plugin__captcha_code'); 6 if(!code) return; 7 8 var box = $('plugin__captcha'); 9 box.value=code.innerHTML; 10 11 $('plugin__captcha_wrapper').style.display = 'none'; 12}); 13