Fix persistent QR, uncheck the auto checkbox.

This commit is contained in:
Nicolas Stepien 2011-06-04 02:38:58 +02:00
parent 04c09dc767
commit 47f45d3c6e
2 changed files with 6 additions and 3 deletions

View File

@ -1053,6 +1053,7 @@
submit.disabled = false;
submit.value = 'Submit';
if ($('#auto').checked) {
$('#auto').checked = false;
$('#qr_form').submit();
}
}
@ -1102,7 +1103,7 @@
qr.autohide.unset();
} else {
if (dialog) {
if ($.config('Persistent QR' && g.REPLY)) {
if ($.config('Persistent QR') && g.REPLY) {
qr.refresh(dialog);
} else {
$.rm(dialog);

View File

@ -799,7 +799,9 @@ cooldown =
else
submit.disabled = false
submit.value = 'Submit'
$('#qr_form').submit() if $('#auto').checked
if $('#auto').checked
$('#auto').checked = false
$('#qr_form').submit()
window.clearInterval cooldown.interval unless cooldown.duration
@ -836,7 +838,7 @@ qr =
qr.autohide.unset()
else # success
if dialog
if $.config 'Persistent QR' and g.REPLY
if $.config('Persistent QR') and g.REPLY
qr.refresh dialog
else
$.rm dialog