Fix persistent QR, uncheck the auto checkbox.
This commit is contained in:
parent
04c09dc767
commit
47f45d3c6e
@ -1053,6 +1053,7 @@
|
|||||||
submit.disabled = false;
|
submit.disabled = false;
|
||||||
submit.value = 'Submit';
|
submit.value = 'Submit';
|
||||||
if ($('#auto').checked) {
|
if ($('#auto').checked) {
|
||||||
|
$('#auto').checked = false;
|
||||||
$('#qr_form').submit();
|
$('#qr_form').submit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1102,7 +1103,7 @@
|
|||||||
qr.autohide.unset();
|
qr.autohide.unset();
|
||||||
} else {
|
} else {
|
||||||
if (dialog) {
|
if (dialog) {
|
||||||
if ($.config('Persistent QR' && g.REPLY)) {
|
if ($.config('Persistent QR') && g.REPLY) {
|
||||||
qr.refresh(dialog);
|
qr.refresh(dialog);
|
||||||
} else {
|
} else {
|
||||||
$.rm(dialog);
|
$.rm(dialog);
|
||||||
|
|||||||
@ -799,7 +799,9 @@ cooldown =
|
|||||||
else
|
else
|
||||||
submit.disabled = false
|
submit.disabled = false
|
||||||
submit.value = 'Submit'
|
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
|
window.clearInterval cooldown.interval unless cooldown.duration
|
||||||
|
|
||||||
@ -836,7 +838,7 @@ qr =
|
|||||||
qr.autohide.unset()
|
qr.autohide.unset()
|
||||||
else # success
|
else # success
|
||||||
if dialog
|
if dialog
|
||||||
if $.config 'Persistent QR' and g.REPLY
|
if $.config('Persistent QR') and g.REPLY
|
||||||
qr.refresh dialog
|
qr.refresh dialog
|
||||||
else
|
else
|
||||||
$.rm dialog
|
$.rm dialog
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user