reset file input
This commit is contained in:
parent
075f390690
commit
5a6f8cedc5
@ -522,7 +522,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
iframeLoad = function() {
|
iframeLoad = function() {
|
||||||
var auto, error, qr, span, submit, _ref, _ref2;
|
var auto, error, f, qr, span, submit, _ref, _ref2;
|
||||||
if (g.iframe = !g.iframe) {
|
if (g.iframe = !g.iframe) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -540,6 +540,8 @@
|
|||||||
} else if (g.REPLY && getConfig('Persistent QR')) {
|
} else if (g.REPLY && getConfig('Persistent QR')) {
|
||||||
$('textarea', qr).value = '';
|
$('textarea', qr).value = '';
|
||||||
$('input[name=recaptcha_response_field]', qr).value = '';
|
$('input[name=recaptcha_response_field]', qr).value = '';
|
||||||
|
f = $('input[type=file]', qr).parentNode;
|
||||||
|
f.innerHTML = f.innerHTML;
|
||||||
submit = $('input[type=submit]', qr);
|
submit = $('input[type=submit]', qr);
|
||||||
submit.value = g.sage ? 60 : 30;
|
submit.value = g.sage ? 60 : 30;
|
||||||
submit.disabled = true;
|
submit.disabled = true;
|
||||||
|
|||||||
@ -364,6 +364,9 @@ iframeLoad = ->
|
|||||||
else if g.REPLY and getConfig 'Persistent QR'
|
else if g.REPLY and getConfig 'Persistent QR'
|
||||||
$('textarea', qr).value = ''
|
$('textarea', qr).value = ''
|
||||||
$('input[name=recaptcha_response_field]', qr).value = ''
|
$('input[name=recaptcha_response_field]', qr).value = ''
|
||||||
|
# XXX file.value = '' doesn't work in opera
|
||||||
|
f = $('input[type=file]', qr).parentNode
|
||||||
|
f.innerHTML = f.innerHTML
|
||||||
submit = $ 'input[type=submit]', qr
|
submit = $ 'input[type=submit]', qr
|
||||||
submit.value = if g.sage then 60 else 30
|
submit.value = if g.sage then 60 else 30
|
||||||
submit.disabled = true
|
submit.disabled = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user