From 47f45d3c6e1f32901db8ee3bf676535e35bfb96e Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 4 Jun 2011 02:38:58 +0200 Subject: [PATCH] Fix persistent QR, uncheck the auto checkbox. --- 4chan_x.user.js | 3 ++- script.coffee | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 9450a103c..35da0294d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -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); diff --git a/script.coffee b/script.coffee index aef38839b..c63daa351 100644 --- a/script.coffee +++ b/script.coffee @@ -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