parse data

This commit is contained in:
James Campos 2011-07-31 23:59:08 -07:00
parent 39d1cdfae2
commit c740f53bfe
2 changed files with 4 additions and 2 deletions

View File

@ -1264,8 +1264,9 @@
$('iframe[name=iframe]').src = 'about:blank';
data = e.data;
if (data) {
data = JSON.parse(data);
$.extend($('#error', qr.el), data);
$('input[name=recaptcha_response_field]', qr.el).value = '';
$.extend($('#error', qr.el), JSON.parse(data));
qr.autohide.unset();
if (data.textContent === 'You seem to have mistyped the verification.') {
qr.auto();

View File

@ -987,8 +987,9 @@ qr =
{data} = e
if data # error message
data = JSON.parse data
$.extend $('#error', qr.el), data
$('input[name=recaptcha_response_field]', qr.el).value = ''
$.extend $('#error', qr.el), JSON.parse data
qr.autohide.unset()
if data.textContent is 'You seem to have mistyped the verification.'
qr.auto()