From b6e3d1f0ecaea64bf94fc6527955e1cb019a3a2b Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 4 May 2011 21:02:47 +0200 Subject: [PATCH] Start qr remix. --- 4chan_x.js | 6 +++--- script.coffee | 19 ++++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 865eca94d..16f8dd746 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1142,16 +1142,16 @@ }, dialog: function(link) { var clone, dialog, el, html, resto, script, xpath, _i, _len, _ref; - html = "
Quick Reply X
"; + html = "
Quick Reply X
"; dialog = ui.dialog('qr', { top: '0px', left: '0px' }, html); - el = $('input[title=autohide]', dialog); + el = $('#autohide', dialog); $.bind(el, 'click', qr.cb.autohide); 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).placeholder = 'Verification'; $.append(d.body, dialog); return; clone = $('form[name=post]').cloneNode(true); diff --git a/script.coffee b/script.coffee index 78e559597..3ffdfbaa6 100644 --- a/script.coffee +++ b/script.coffee @@ -876,24 +876,25 @@ qr = dialog: (link) -> html = " -
Quick Reply X
+
Quick Reply X
-
-
-
-
+ +
+
+
+
-
-
+
+
" dialog = ui.dialog 'qr', top: '0px', left: '0px', html - el = $ 'input[title=autohide]', dialog + el = $ '#autohide', dialog $.bind el, 'click', qr.cb.autohide 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).placeholder = 'Verification' $.append d.body, dialog return