diff --git a/4chan_x.user.js b/4chan_x.user.js
index 015ca05a8..0a2e51955 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -1353,7 +1353,7 @@
cooldown = $.get("cooldown/" + g.BOARD, 0);
now = Date.now();
n = Math.ceil((cooldown - now) / 1000);
- b = $('button', QR.qr);
+ b = $('form button', QR.qr);
if (n > 0) {
$.extend(b, {
textContent: n,
@@ -1365,7 +1365,7 @@
textContent: 'Submit',
disabled: false
});
- if ($('#auto', QR.qr).checked) {
+ if ($('#autopost', QR.qr).checked) {
return QR.submit();
}
}
@@ -1404,8 +1404,6 @@
$('[name=email]', qr).value = if m = c.match(/4chan_email=([^;]+)/) then decodeURIComponent m[1] else ''
$('[name=pwd]', qr).value = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
$('textarea', qr).value = text
- QR.cooldown() if conf['Cooldown']
- $.bind $('.close', qr), 'click', QR.close
$.bind $('[type=file]', qr), 'change', QR.change
$.bind $('#attach', qr), 'click', QR.attach
*/
@@ -1413,6 +1411,10 @@
top: '0',
left: '0'
}, " X
Subject Name Email
");
+ if (conf['Cooldown']) {
+ QR.cooldown();
+ }
+ $.bind($('.close', qr), 'click', QR.close);
$.bind($('.click', qr), 'mousedown', function(e) {
return e.stopPropagation();
});
diff --git a/script.coffee b/script.coffee
index 455c8a3bd..0e5862b80 100644
--- a/script.coffee
+++ b/script.coffee
@@ -1055,7 +1055,7 @@ QR =
cooldown = $.get "cooldown/#{g.BOARD}", 0
now = Date.now()
n = Math.ceil (cooldown - now) / 1000
- b = $ 'button', QR.qr
+ b = $ 'form button', QR.qr
if n > 0
$.extend b,
textContent: n
@@ -1065,7 +1065,7 @@ QR =
$.extend b,
textContent: 'Submit'
disabled: false
- QR.submit() if $('#auto', QR.qr).checked
+ QR.submit() if $('#autopost', QR.qr).checked
dialog: (text='', tid=g.THREAD_ID) ->
###
"
@@ -1093,8 +1093,6 @@ QR =
$('[name=email]', qr).value = if m = c.match(/4chan_email=([^;]+)/) then decodeURIComponent m[1] else ''
$('[name=pwd]', qr).value = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
$('textarea', qr).value = text
- QR.cooldown() if conf['Cooldown']
- $.bind $('.close', qr), 'click', QR.close
$.bind $('[type=file]', qr), 'change', QR.change
$.bind $('#attach', qr), 'click', QR.attach
###
@@ -1127,6 +1125,8 @@ QR =
"
+ QR.cooldown() if conf['Cooldown']
+ $.bind $('.close', qr), 'click', QR.close
$.bind $('.click', qr), 'mousedown', (e) -> e.stopPropagation()
$.bind $('form', qr), 'submit', QR.submit
$.bind $('#recaptcha_response_field', qr), 'keydown', QR.keydown