diff --git a/4chan_x.js b/4chan_x.js index c485bbfe0..5ae82e68a 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1141,17 +1141,25 @@ } }, dialog: function(link) { - var clone, dialog, el, html, resto, script, xpath, _i, _len, _ref; - html = "
Quick Reply X
"; + var clone, dialog, el, html, resto, script, spoiler, xpath, _i, _len, _ref; + html = "
Quick Reply X
"; dialog = ui.dialog('qr', { top: '0px', left: '0px' }, html); el = $('#autohide', dialog); $.bind(el, 'click', qr.cb.autohide); + $('input[name="MAX_FILE_SIZE"]', dialog).value = $('.postarea input[name="MAX_FILE_SIZE"]').value; + if ($('.postarea label')) { + spoiler = $.el('label', { + innerHTML: " [Spoiler Image?]" + }); + $.append($('div:nth-of-type(2)', dialog), spoiler); + } clone = $('#recaptcha_widget_div').cloneNode(true); $.append($('#qr_captcha', dialog), clone); $('input[name=recaptcha_response_field]', clone).placeholder = 'Verification'; + $('input[name=recaptcha_response_field]', clone).className = 'inputtext'; $.append(d.body, dialog); return; clone = $('form[name=post]').cloneNode(true); @@ -2299,32 +2307,36 @@ #qr #recaptcha_table td:nth-of-type(3) {/* captcha logos */\ display: none;\ }\ - #qr form {\ - margin: 0px;\ + #qr form, #qr #com_submit, #qr input[type="file"] {\ + margin: 0;\ }\ #qr textarea {\ - width: 300px;\ + width: 302px;\ height: 80px;\ }\ #qr *:not(input):not(textarea) {\ - padding: 0px !important;\ + padding: 0 !important;\ }\ #qr.auto:not(:hover) form {\ display: none;\ }\ #qr span.error {\ position: absolute;\ - bottom: 0;\ + top: 0;\ left: 0;\ }\ /* qr reCAPTCHA */\ #qr_captcha input {\ - margin-top: 3px;\ + border: 1px solid #AAA !important;\ + margin-top: 2px;\ padding: 2px 4px 3px;\ }\ #qr tr {\ height: auto;\ }\ + #qr .recaptchatable #recaptcha_image {\ + border: 1px solid #AAA !important;\ + }\ #qr #recaptcha_reload, #qr #recaptcha_switch_audio, #qr #recaptcha_whatsthis {\ height: 0;\ width: 0;\ diff --git a/script.coffee b/script.coffee index 1c2d74c5d..a2857e6be 100644 --- a/script.coffee +++ b/script.coffee @@ -878,23 +878,31 @@ qr = html = "
Quick Reply X
- -
-
-
-
-
-
-
+ +
+
+
+
+
+
+
" dialog = ui.dialog 'qr', top: '0px', left: '0px', html el = $ '#autohide', dialog $.bind el, 'click', qr.cb.autohide + $('input[name="MAX_FILE_SIZE"]', dialog).value = $('.postarea input[name="MAX_FILE_SIZE"]').value + + if $ '.postarea label' + spoiler = $.el 'label', + innerHTML: " [Spoiler Image?]" + $.append $('div:nth-of-type(2)', dialog), spoiler + clone = $('#recaptcha_widget_div').cloneNode(true) $.append $('#qr_captcha', dialog), clone $('input[name=recaptcha_response_field]', clone).placeholder = 'Verification' + $('input[name=recaptcha_response_field]', clone).className = 'inputtext' $.append d.body, dialog return @@ -1813,32 +1821,36 @@ main = #qr #recaptcha_table td:nth-of-type(3) {/* captcha logos */ display: none; } - #qr form { - margin: 0px; + #qr form, #qr #com_submit, #qr input[type="file"] { + margin: 0; } #qr textarea { - width: 300px; + width: 302px; height: 80px; } #qr *:not(input):not(textarea) { - padding: 0px !important; + padding: 0 !important; } #qr.auto:not(:hover) form { display: none; } #qr span.error { position: absolute; - bottom: 0; + top: 0; left: 0; } /* qr reCAPTCHA */ #qr_captcha input { - margin-top: 3px; + border: 1px solid #AAA !important; + margin-top: 2px; padding: 2px 4px 3px; } #qr tr { height: auto; } + #qr .recaptchatable #recaptcha_image { + border: 1px solid #AAA !important; + } #qr #recaptcha_reload, #qr #recaptcha_switch_audio, #qr #recaptcha_whatsthis { height: 0; width: 0;