diff --git a/4chan_x.js b/4chan_x.js
index ba90d4612..b381115ef 100644
--- a/4chan_x.js
+++ b/4chan_x.js
@@ -171,7 +171,7 @@
} else {
el.style.bottom = '0px';
}
- el.querySelector('div.move').addEventListener('mousedown', ui.dragstart, true);
+ el.querySelector('div.move').addEventListener('mousedown', ui.dragstart, false);
if ((_ref3 = el.querySelector('div.move a[name=close]')) != null) {
_ref3.addEventListener('click', (function() {
return el.parentNode.removeChild(el);
@@ -1132,11 +1132,14 @@
var MAX_FILE_SIZE, THREAD_ID, clone, dialog, el, form, html, spoiler;
MAX_FILE_SIZE = $('input[name="MAX_FILE_SIZE"]').value;
THREAD_ID = g.THREAD_ID || link.pathname.split('/').pop();
- html = "
";
+ html = " ";
dialog = ui.dialog('qr', {
top: '0px',
left: '0px'
}, html);
+ $.bind($('input[name=name]', dialog), 'mousedown', function(e) {
+ return e.stopPropagation();
+ });
el = $('#autohide', dialog);
$.bind(el, 'click', qr.cb.autohide);
if ($('.postarea label')) {
@@ -2274,10 +2277,13 @@
#qr > div.move {\
text-align: right;\
}\
+ #qr > div.move > input[name=name] {\
+ float: left;\
+ }\
#qr #recaptcha_table td:nth-of-type(3) {/* captcha logos */\
display: none;\
}\
- #qr form {\
+ #qr {\
width: 302px;\
}\
#qr form, #qr #com_submit, #qr input[type="file"] {\
diff --git a/script.coffee b/script.coffee
index 4f9194936..117e47d4e 100644
--- a/script.coffee
+++ b/script.coffee
@@ -95,7 +95,7 @@ ui =
top = localStorage["#{id}Top"] ? top
if left then el.style.left = left else el.style.right = '0px'
if top then el.style.top = top else el.style.bottom = '0px'
- el.querySelector('div.move').addEventListener 'mousedown', ui.dragstart, true
+ el.querySelector('div.move').addEventListener 'mousedown', ui.dragstart, false
el.querySelector('div.move a[name=close]')?.addEventListener 'click',
(-> el.parentNode.removeChild(el)), true
el
@@ -872,11 +872,15 @@ qr =
MAX_FILE_SIZE = $('input[name="MAX_FILE_SIZE"]').value
THREAD_ID = g.THREAD_ID or link.pathname.split('/').pop()
html = "
-
-
"
dialog = ui.dialog 'qr', top: '0px', left: '0px', html
+
+ $.bind $('input[name=name]', dialog), 'mousedown', (e) -> e.stopPropagation()
el = $ '#autohide', dialog
$.bind el, 'click', qr.cb.autohide
@@ -1792,10 +1798,13 @@ main =
#qr > div.move {
text-align: right;
}
+ #qr > div.move > input[name=name] {
+ float: left;
+ }
#qr #recaptcha_table td:nth-of-type(3) {/* captcha logos */
display: none;
}
- #qr form {
+ #qr {
width: 302px;
}
#qr form, #qr #com_submit, #qr input[type="file"] {