diff --git a/4chan_x.user.js b/4chan_x.user.js
index 5e6f3d422..9450a103c 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -1052,6 +1052,9 @@
} else {
submit.disabled = false;
submit.value = 'Submit';
+ if ($('#auto').checked) {
+ $('#qr_form').submit();
+ }
}
}
if (!cooldown.duration) {
@@ -1186,7 +1189,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 +1198,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..aef38839b 100644
--- a/script.coffee
+++ b/script.coffee
@@ -799,6 +799,7 @@ cooldown =
else
submit.disabled = false
submit.value = 'Submit'
+ $('#qr_form').submit() if $('#auto').checked
window.clearInterval cooldown.interval unless cooldown.duration
@@ -926,7 +927,7 @@ qr =
-
+
@@ -939,6 +940,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'