diff --git a/4chan_x.user.js b/4chan_x.user.js
index 5e6f3d422..291d19f1e 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -1052,6 +1052,10 @@
} else {
submit.disabled = false;
submit.value = 'Submit';
+ if ($('#auto') && $('#auto').checked) {
+ $('#auto').checked = false;
+ $('#qr_form').submit();
+ }
}
}
if (!cooldown.duration) {
@@ -1099,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);
@@ -1186,7 +1190,7 @@
name = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
mail = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
pass = (m = c.match(/4chan_pass=([^;]+)/)) ? decodeURIComponent(m[1]) : $('input[name=pwd]').value;
- html = "
";
+ html = " ";
dialog = ui.dialog('qr', {
top: '0px',
left: '0px'
@@ -1195,6 +1199,7 @@
return e.stopPropagation();
});
$.bind($('#autohide', dialog), 'click', qr.cb.autohide);
+ $.bind($('#auto', dialog), 'click', qr.autohide.set);
$.bind($('img', dialog), 'click', Recaptcha.reload);
if ($('.postarea label')) {
spoiler = $.el('label', {
diff --git a/script.coffee b/script.coffee
index 9aed4c739..791782769 100644
--- a/script.coffee
+++ b/script.coffee
@@ -799,6 +799,9 @@ cooldown =
else
submit.disabled = false
submit.value = 'Submit'
+ if $('#auto') and $('#auto').checked
+ $('#auto').checked = false
+ $('#qr_form').submit()
window.clearInterval cooldown.interval unless cooldown.duration
@@ -835,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
@@ -926,7 +929,7 @@ qr =
-
+
@@ -939,6 +942,7 @@ qr =
$.bind $('input[name=name]', dialog), 'mousedown', (e) -> e.stopPropagation()
$.bind $('#autohide', dialog), 'click', qr.cb.autohide
+ $.bind $('#auto', dialog), 'click', qr.autohide.set
$.bind $('img', dialog), 'click', Recaptcha.reload
if $ '.postarea label'