diff --git a/4chan_x.user.js b/4chan_x.user.js
index 8f64b7179..ceb127c8f 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -1406,7 +1406,7 @@
QR.qr = qr = ui.dialog('qr', {
top: '0',
left: '0'
- }, " X
Subject Name Email
");
+ }, " X Subject Name Email
");
c = d.cookie;
$('[name=name]', qr).value = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
$('[name=email]', qr).value = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : '';
@@ -1414,6 +1414,9 @@
if (conf['Cooldown']) {
QR.cooldown();
}
+ $.bind($('button', qr), 'click', function() {
+ return $('[type=file]', qr).click();
+ });
$.bind($('.close', qr), 'click', QR.close);
$.bind($('.click', qr), 'mousedown', function(e) {
return e.stopPropagation();
diff --git a/script.coffee b/script.coffee
index 331ff3dda..b6e68777e 100644
--- a/script.coffee
+++ b/script.coffee
@@ -1108,13 +1108,13 @@ QR =
-
120 Captchas
+
@@ -1127,6 +1127,7 @@ QR =
$('[name=email]', qr).value = if m = c.match(/4chan_email=([^;]+)/) then decodeURIComponent m[1] else ''
$('textarea', qr).value = text
QR.cooldown() if conf['Cooldown']
+ $.bind $('button', qr), 'click', -> $('[type=file]', qr).click()
$.bind $('.close', qr), 'click', QR.close
$.bind $('.click', qr), 'mousedown', (e) -> e.stopPropagation()
$.bind $('form', qr), 'submit', QR.submit