don't directly set visibility

This commit is contained in:
James Campos 2010-10-20 03:29:43 -07:00
parent 60d988d568
commit 9725dd2ece
2 changed files with 3 additions and 3 deletions

View File

@ -446,12 +446,12 @@ iframeLoad = ->
qr = $('#qr')
if error = GM_getValue('error')
$('form', qr).style.visibility = ''
span = n 'span', {
textContent: error
className: 'error'
}
addTo qr, span
$('input[title=autohide]:not(:checked)', qr)?.click()
else if REPLY and getConfig('Persistent QR')
$('textarea', qr).value = ''
$('input[name=recaptcha_response_field]', qr).value = ''

View File

@ -504,19 +504,19 @@
return remove(div);
};
iframeLoad = function() {
var error, qr, span;
var _ref2, _ref3, error, qr, span;
if (iframeLoop = !iframeLoop) {
return null;
}
$('iframe').src = 'about:blank';
qr = $('#qr');
if (error = GM_getValue('error')) {
$('form', qr).style.visibility = '';
span = n('span', {
textContent: error,
className: 'error'
});
addTo(qr, span);
(typeof (_ref3 = ((_ref2 = $('input[title=autohide]:not(:checked)', qr)))) === "undefined" || _ref3 === null) ? undefined : _ref3.click();
} else if (REPLY && getConfig('Persistent QR')) {
$('textarea', qr).value = '';
$('input[name=recaptcha_response_field]', qr).value = '';