Fix persistent QR, uncheck the auto checkbox.
This commit is contained in:
parent
04c09dc767
commit
47f45d3c6e
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user