mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
issue 423 fixed sign up capcha
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9607 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
82cdc661b6
commit
db0d62ed4a
4 changed files with 101 additions and 11 deletions
17
addons/captcha/inline_captcha.js
Normal file
17
addons/captcha/inline_captcha.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
jQuery(function($){
|
||||
$('button.captchaPlay')
|
||||
.click(function(){
|
||||
var swf = document['captcha_audio'] || window['captcha_audio'];
|
||||
var audio = current_url.setQuery('captcha_action','captchaAudio').setQuery('rand', (new Date).getTime());
|
||||
|
||||
if(swf.length > 1) swf = swf[0];
|
||||
|
||||
$('input[type=text]#secret_text').focus();
|
||||
swf.setSoundTarget(audio,'1');
|
||||
});
|
||||
|
||||
$('button.captchaReload')
|
||||
.click(function(){
|
||||
$("#captcha_image").attr("src", current_url.setQuery('captcha_action','captchaImage').setQuery('rand', (new Date).getTime()).setQuery('renew',1));
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue